Permission denied for Git Clone when I do npm install

后端 未结 4 672
南笙
南笙 2020-12-14 22:49

I have git dependencies in my package.json file. When I do sudo npm install in my react app folder, I get this error

    npm ERR! code 1
           


        
4条回答
  •  旧巷少年郎
    2020-12-14 23:45

    I don't know whether your problem is solved or not. Today i faced the same issue the problem was ~/.npm folder is messing with permission so I changed permission as sudo chown -R $(whoami) ~/.npm and it is working fine.

提交回复
热议问题