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

后端 未结 2 644
长发绾君心
长发绾君心 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:23

    I was getting all kinds of crazy errors even after applying the fixes above, finally I ran "chmod -R 777 /home/[moi]/.npm, and it now runs without any errors.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题