无法使用npm安装@ angular/cli [英] Not able to install @angular/cli using npm

查看:237
本文介绍了无法使用npm安装@ angular/cli的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是"@ angular/cli"的新手,我已经尝试了所有方法,但无法安装. 现在我很累,请有人可以帮助我在系统中安装angular 4"@ angular/cli".

I am new to "@angular/cli", I have tried every thing but could not install. I am tired now please some one can help me to install angular 4 "@angular/cli" in my system.

节点和npm版本

,当我安装"npm install -g @ angular/cli"时,

and when I am installing "npm install -g @angular/cli" then getting

在安装节点-v 6之后,我得到了erorr以下的提示

after installing node -v 6 I am getting below erorr

请告诉我我实际上哪里错了.

please suggest me where actually I am wrong.

推荐答案

您的节点版本可能有问题.我建议您重新安装节点,然后重试.

It could be issue with your node version. I will suggest you to reinstall node and try it again.

或者您也可以尝试使用npm cache clean --force

Or you can also try to clean node cache of using npm cache clean --force

这篇关于无法使用npm安装@ angular/cli的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆