Getting an error cb() never called .

(Mehul Mandviya) #1


It informed me to check with nom community . Could someone help mw with this error.
Hi! Thanks for taking the time to file a bug report!

  • Please make sure to fill out ALL sections! This will help us immensely!
  • Bug reports with working reproduction steps will be prioritized.
  • Incomplete bug reports and support issues will be moved to #support.


What I Wanted to Do

What Happened Instead

Reproduction Steps


Platform Info

$ npm --versions
<!-- paste output here -->
$ node -p process.platform
<!-- paste output here -->

(John Gee) #2

Hi! Sorry you are having this problem. There is an open issue with installing global packages using sudo leaving behind files with the wrong ownership.

The short version is run this to fix the ownership, then try your install again:

sudo chown -R $(whoami) ~/.npm

The canonical bug and longer version is: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.

And optional extra steps for changing ownership so you do not need to use sudo for doing node installs with n are in this comment.