Lots of “npm ERR!”s when running `yo angular`

后端 未结 2 643
长发绾君心
长发绾君心 2021-01-22 03:52

I\'m trying to get Yeoman to work but it\'s been one wall after another. Thank God for stackoverflow and all you nice people helping out. Anyways ...

I\'ve been trying

2条回答
  •  情话喂你
    2021-01-22 04:33

    80 error Error: EACCES, mkdir '/home/ubuntu/tmp/npm-26883-sBYbfAy6'

    Okay, so your /home/ubuntu/tmp has wrong permissions. It happened because you did sudo npm install in the past, and npm doesn't handle this well enough.

    Run sudo chown ubuntu /home/ubuntu/tmp -Rv to fix this issue, or just delete that folder.

提交回复
热议问题