NPM error install Ionic

Getting the following error when trying to install Ionic with NPM. Says to post here. Thanks for any help.

npm install -g ionic
Unhandled rejection Error: EACCES: permission denied, open '/Users/keenan.olsen/.npm/_cacache/tmp/c5d19a2b'

npm ERR! cb() never called!

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

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/keenan.olsen/.npm/_logs/2019-09-03T05_59_05_288Z-debug.log



keenan.olsen ~ $ sudo npm install -g ionic
Password:
Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/Users/keenan.olsen/.npm/_cacache/content-v2/sha512/bb/02'

npm ERR! cb() never called!

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

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/keenan.olsen/.npm/_logs/2019-09-03T05_59_44_718Z-debug.log

I’ve tried to clear npm cache and run with sudo command

Tried this command and i’m still getting the same error

This has probably been fixed in latest npm, What version of npm and node are you using?

npm --versions
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.