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

后端 未结 16 943
抹茶落季
抹茶落季 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:19

    Simply run on terminal : sudo chown -R $(whoami) ~/.npm

    This worked for me !!

提交回复
热议问题