The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Unhandled rejection Error: EISDIR
What I Wanted to Do
sudo npm install -g forceios
I expected npm to install forceios
What Happened Instead
got the following error;
"Unhandled rejection Error: EISDIR: illegal operation on a directory, open ‘/Users/tcondon/.npm/_cacache/index-v5/dd/33’
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community"
just run the command
0 info it worked if it ends with ok
1 verbose cli [ ‘/Users/tcondon/.nvm/versions/node/v8.11.3/bin/node’,
1 verbose cli ‘/Users/tcondon/.nvm/versions/node/v8.11.3/bin/npm’,
1 verbose cli ‘install’,
1 verbose cli ‘-g’,
1 verbose cli ‘forceios’ ]
2 info using firstname.lastname@example.org
3 info using email@example.com
4 verbose npm-session 8b8d14125608fde1
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 timing npm Completed in 1531ms
8 error cb() never called!
9 error This is an error with npm itself. Please report this error at:
10 error https://npm.community
MacOS Mojave 10.14.6
$ npm --versions 6.9.0 $ node -p process.platform darwin
This should be fixed in the latest npm release.
sudo npm install -g npm@latest
I believe that it’s also connected to an issue that was fixed sometime in the node 10.x series. You may need to use a later node to install it, depending on what’s going on with your system, if you get the same error trying to update npm.