On npm install: Unhandled rejection Error: EACCES: permission denied

后端 未结 16 893
抹茶落季
抹茶落季 2020-12-02 03:51

I have managed to corrupt my npm install, and whenever I try to install packages using npm install, I receive error messages along these lines:

16条回答
  •  醉梦人生
    2020-12-02 04:08

    This one works for me:

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

    I did not use the -g because I am the only user. I used a MacBook Air.

提交回复
热议问题