Angular-cli安装但未启动新项目:软件包安装失败

时间:2019-02-15 18:24:24

标签: angular

当运行ng new hello-world命令时,它显示软件包安装失败。 角CLI:6.2.5 节点:10.15.1 操作系统:win32 ia32 package install failed

1 个答案:

答案 0 :(得分:0)

您已经卸载了cli并进行了安装

npm uninstall -g angular-cli npm uninstall --save-dev angular-cli

    npm uninstall -g @angular/cli npm cache verify # if npm version is < 5 then use 
`npm cache clean
`npm install -g @angular/cli@latest

rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell 
npm install --save-dev @angular/cli@latest npm install

Documentation