EACCES: permission denied, unlink

后端 未结 1 596
囚心锁ツ
囚心锁ツ 2020-12-31 09:47

I can\'t launched my project with react.js with command yarn install. Get error:

error /Users/lera/Desktop/beam-web/node_modules/sharp: 
Failed         


        
相关标签:
1条回答
  • 2020-12-31 10:29

    First of all, you need to check permission by running the command:

    ls -la ~/.config/yarn/global/node_modules/.yarn*
    

    I received the next response:

    -rw-r--r-- 1 root staff 15163 Jul 18 15:17 ~/.config/yarn/global/node_modules/.yarn-integrity
    

    Then if you saw that root had permission, but you don't have, you should add permission to yourself:

    sudo chown -R ${USER} ~/.config/yarn/
    
    0 讨论(0)
提交回复
热议问题