npm Community Forum (Archive)

The npm community forum has been discontinued.

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

problem when trying to install polymer cli

$ sudo npm install -g polymer-cli

Unhandled rejection Error: EISDIR: illegal operation on a directory, open ‘/Users/user/.npm/_cacache/tmp’

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! <>

npm ERR! A complete log of this run can be found in:

Some people are encountering problems with using sudo for global installs in latest npm. A likely work-around is to reset the ownerships on ~/.npm:

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

Or go further and remove the need to use sudo for the global install: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.

thanks for the response. issue was fixed after i downgraded to 6.4.1. :slight_smile: