Angular ng new returns package install failed error - compiler.umd.js missing

前端 未结 3 1501
北恋
北恋 2021-01-28 05:17

I am trying to learn Angular and am following an online tutorial. However, I can\'t seem to get past creating a new project with ng new. I am running node v10.16.0 and npm 6.9.0

3条回答
  •  天命终不由人
    2021-01-28 06:05

    For some reasons when angular/cli (ng) run npm install by itself, it have problem with packages writing, so you can run

    ng new yourProject --skipInstall=true
    

    so angular/cli will not install any node packages and then run

    npm install --force
    

    to install it by yourself

提交回复
热议问题