Windows 10中的npm安装错误(npm install -g angular-cli) [英] npm install error ( npm install -g angular-cli ) in windows 10

查看:251
本文介绍了Windows 10中的npm安装错误(npm install -g angular-cli)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


节点-v

v4.5.0

npm -v

5.0.1

有人在Windows 10中安装angular-cli时遇到过此类问题吗?

Has anyone faced this kind of issue while installing angular-cli in windows 10?

推荐答案

尝试以下操作:

步骤0: 运行此命令

npm uninstall -g @angular/cli
npm cache clean

步骤1:删除此文件夹: C:\用户\%YOUR-USERNAME%\AppData\Roaming\npm

步骤2:卸载Node.js从Windows

step 2: uninstall Nodejs from Windows

步骤3:重新启动PC

步骤4 :从此处安装Nodejs的新副本: https://nodejs.org/en/

step 4: install a fresh copy of Nodejs from here: https://nodejs.org/en/

步骤5:全局安装CLI

npm install -g @angular/cli@latest

这篇关于Windows 10中的npm安装错误(npm install -g angular-cli)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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