npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Error with npm itself

What I Wanted to Do

I want to install vue-cli with npm

sudo npm install -g vue-cli

What Happened Instead

It returns error like this

npm WARN registry Unexpected warning for Miscellaneous Warning ENETUNREACH: request to failed, reason: connect ENETUNREACH - Local (
npm WARN registry Using stale data from due to a request error during revalidation.
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dimaswehhh/.npm/_logs/2019-06-17T06_15_45_216Z-debug.log

Platform Info

$ npm --versions
$ node -p process.platform