npm 1 unhandled rejection error

(Cyberalissa) #1

npm i
Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/cyber_alissa/.npm/_cacache/index-v5/12/d2’ permissi

Unhandled rejection Error: EACCES: permission denied, mkdir '/Users/cyber_alissa/.npm/_cacache/index-v5/0c/bb’CCES: per

Unhandled rejection Error: EACCES: permission denied, mkdir '/Users/cyber_alissa/.npm/_cacache/index-v5/b9/a9’812ms

Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/cyber_alissa/.npm/_cacache/index-v5/89/01’

Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/cyber_alissa/.npm/_cacache/index-v5/40/da’

Unhandled rejection Error: EACCES: permission denied, mkdir '/Users/cyber_alissa/.npm/_cacache/index-v5/58/f0’ssion den

Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/cyber_alissa/.npm/_cacache/index-v5/69/b6’.2.2 EACC

Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/cyber_alissa/.npm/_cacache/index-v5/20/b8’.2.2 EACC

Unhandled rejection Error: EACCES: permission denied, mkdir '/Users/cyber_alissa/.npm/_cacache/index-v5/62/04’ms

Unhandled rejection Error: EACCES: permission denied, mkdir '/Users/cyber_alissa/.npm/_cacache/index-v5/62/6b’fetched i

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/cyber_alissa/.npm/_logs/2019-04-18T08_00_16_594Z-debug.log
[ERROR] An error occurred while running subprocess npm.

    npm i exited with exit code 1.
(John Gee) #2

There is an open issue with installing global packages using sudo leaving behind files with the wrong ownership.

The short version is run this to fix the ownership, then try your install again:


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

The long version and canonical bug is: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.

(system) closed #3

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