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! <https://npm.community>

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:

1 Like

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