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

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

    Above answer didn't work for me. Just try to run your command with --unsafe-perm.

    e.g

    npm install -g node@latest --unsafe-perm
    

    This seems to solve the problem.

提交回复
热议问题