npm Community Forum (Archive)

The npm community forum has been discontinued.

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

nodemon is not installed properaly in my mac Ask Question

I am trying to install nodemon in my mac but I am getting error

I have used sudo npm i -g nodemon in my mac terminal

run it and got error below mentioned

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/Users/user/.npm/_cacache/content-v2/sha512/2d/c2'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/Users/user/.npm/_cacache/content-v2/sha512/a6/05'

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/user/.npm/_logs/2019-02-18T20_33_24_007Z-debug.log
users-MacBook-Pro-3:~ user$ 


The canonical bug and steps for an interim work-around are: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.