Ubuntu create-react-app fails with permission denied

前端 未结 6 2067
独厮守ぢ
独厮守ぢ 2021-02-08 12:32

I\'m getting a weird error:

Unhandled rejection Error: EACCES: permission denied, mkdir \'/home/ubuntu/.npm/_cacache/index-v5/14/36\'atus

I jus

6条回答
  •  日久生厌
    2021-02-08 13:13

    I have same error on Mac catalina 10.15

    You must use sudo, because root is the owner of npm folder, user try to modify some file under npm folder, must run as root by sudo.

    The fix is:

                sudo dojo create app --name hello-world
    

提交回复
热议问题