Error: EACCES: permission denied

后端 未结 23 2366
醉梦人生
醉梦人生 2020-11-29 19:04

I run npm install lodash but it throws Error: EACCES: permission denied error. I know it is permission issue but as far as I know, sudo permission

23条回答
  •  日久生厌
    2020-11-29 20:04

    Try to give all permission to your project folder with below command

    sudo chmod -R 777 /yourProjectDirectoryName
    

    run with

    sudo npm install lodash
    

提交回复
热议问题