简体   繁体   English

使用npm错误安装Angular 4

[英]Error install Angular 4 using npm

When i install angular and try to use this command line : ng -vi got an error (check jpeg file) .. I have installed : node 6.10.3 someone have a solution 当我安装angular并尝试使用此命令行时:ng -vi出现错误(检查jpeg文件)..我已经安装:node 6.10.3有人解决了

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM