quando sto cercando di installare Express con NPM Ho sempre trovato il seguente errore:NPM "Impossibile analizzare JSON"
Failed to parse json
No data, empty input at 1:1
File: /root/.npm/inherits/2.0.1/package/package.json
Failed to parse package.json data.
package.json must be actual JSON, not just JavaScript.
This is not a bug in npm.
Tell the package author to fix their package.json file. JSON.parse
Che cosa sto facendo di sbagliato?
sudo npm install -g express
OS è Ubuntu 12.04 (precisi) armhf
run 'cache npm Clean' quindi riprovare – Jivings
può anche essere la pena di verificare per trailing virgole in' package.json' che era il mio (imbarazzante) problema – Rambatino