简体   繁体   English

无法使用npm安装angular cli

[英]Couldn't Install angular cli with npm

I'm using 8.9.2 version of node js and when I tried to install angular cli 我正在使用8.9.2版本的Node js,并且在尝试安装angular cli时

with this command : npm -g install @angular/cli 使用以下命令: npm -g install @angular/cli

It is displaying some npm errors 它显示一些npm错误

This is what I got on my cmd prompt screen : 这是我在cmd提示屏幕上看到的:

npm ERR! Unexpected end of JSON input while parsing near '...-2.3.0.tgz"},"engines'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\haris_000\AppData\Roaming\npm-cache\_logs\2017-12-05T12_19_58_814Z-debug.log

我猜安装Angular的命令是:npm install -g @ angular / cli

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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