不能使用Cli安装Angular2应用程序
- 我跟着链接; https://github.com/angular/angular-cli/wiki
- npm版本:5.0.1
- 节点版本:6.11.0
-
我运行命令
npm install -g @angular/cli
我试过的解决scheme
npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@latest
但它不适合我。
这是npm错误或angular度2。
请build议。
错误
unexpected end of input at 1:13267
我也试过; https://angular.io/docs/ts/latest/guide/setup.html 。
- npm安装不工作
您可以尝试通过以下方式卸载错误的软件包:
npm uninstall -g angular-cli # Remove global package npm uninstall --save-dev angular-cli # Remove from package.json npm uninstall -g @angular/cli # Remove global package npm uninstall --save-dev @angular/cli # Remove from package.json rm -rf node_modules dist # Use rmdir on Windows npm cache clean
现在:
npm install npm@latest -g #update npm npm install -g @angular/cli@latest # Global package npm install --save-dev @angular/cli@latest # Local package npm install # Restore removed dependencies
更多信息可以在这里find: https : //github.com/angular/angular-cli/wiki/stories-1.0-update