Error: EACCES: permission denied when running `npm install` on Elastic Beanstalk

后端 未结 3 1626
鱼传尺愫
鱼传尺愫 2021-02-13 11:49

I\'ve provisioned a default clean node.js app via Elastic Beanstalk, and have a node.js script trying to run npm install inside the project directory (/var/ap

3条回答
  •  一个人的身影
    2021-02-13 12:26

    The following command will fix the issue. it worked for me.

    sudo chown -R 1000:1000 "/home/user/.npm" 
    

提交回复
热议问题