The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
update error cb() never called!
What I Wanted to Do
Update npm itself
What Happened Instead
sudo npm install -g npm
udo npm install -g npm
mac newest sw
$ npm --versions npm: '6.6.0', ares: '1.14.0', cldr: '33.0', http_parser: '2.8.0', icu: '61.1', modules: '64', napi: '3', nghttp2: '1.29.0', node: '10.2.1', openssl: '1.1.0h', tz: '2018c', unicode: '10.0', uv: '1.20.3', v8: '6.6.346.32-node.8', zlib: '1.2.11' $ node -p process.platform <!-- paste output here --> darwin 0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli 'npm' ] 2 info using email@example.com 3 info using firstname.lastname@example.org 4 verbose npm-session 64a7a93bbe9b3f9d 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 timing npm Completed in 940ms 8 error cb() never called! 9 error This is an error with npm itself. Please report this error at: 10 error <https://npm.community>
update error cb() never called! mostly happens after something else goes wrong, and your log does not have any clues in it. Are there are other error messages displayed when you run the command?
sudo npm i -g npm-check-updates
Unhandled rejection Error: EISDIR: illegal operation on a directory, open ‘/Users/andreas/.npm/_cacache/content-v2/sha512/22/d6’
The folder exist.
This is the log file:
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’,
1 verbose cli ‘/usr/local/bin/npm’,
1 verbose cli ‘i’,
1 verbose cli ‘-g’,
1 verbose cli ‘npm-check-updates’ ]
2 info using email@example.com
3 info using firstname.lastname@example.org
4 verbose npm-session 055ed5de3020d738
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 timing npm Completed in 1090ms
8 error cb() never called!
9 error This is an error with npm itself. Please report this error at:
10 error <https://npm.community>
There are multiple reports around
EISDIR. The canonical topic to consult is:
At least some problems have been fixed by resetting ownership, and ideally by subsequently avoiding use of sudo. I suggest try this first and see if it fixes the
sudo chown -R $(whoami) ~/.npm sudo npm i -g npm-check-updates
And if that helps, then I suggest changing ownership of the install folder too and rerunning without sudo like in this comment: opencv4nodejs not installing in MAC OS Mojave 10.14
Greate, I have changed the folder permissions as descripted and run it without sudo.
Thank you very much