[英]Error install Angular 4 using npm
Those errors are caused by you manually stopped @angular/cli
from installing packages into your project folder.(When running ng -v
in a angular/cli
project folder, angular/cli
will trying to output your version information of installed @angular/xxx
packages). 这些错误是由您手动停止@angular/cli
将软件包安装到项目文件夹中引起的。(当在angular/cli
项目文件夹中运行ng -v
时, angular/cli
将尝试输出已安装的@angular/xxx
版本信息包)。
mention that when you pressed Ctrl + C
, the task will stop even you pressed N
later. 提到当您按Ctrl + C
,即使您稍后再按N
,该任务也会停止。
Solution: 解:
run npm install
at your project folder and wait for it to be finished, then when you run ng -v
again, the errors will gone. 在项目文件夹中运行npm install
并等待其完成,然后再次运行ng -v
时,错误将消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.