简体   繁体   中英

Angular CLI installation on Windows 8.1

Installed Versions :

  • node v8.9.4
  • npm v5.6.0

I tried

npm install -g -f angular-cli npm install -g @angular/cli

This didn't work. So, I tried

npm uninstall @angular/cli
npm cache verify
npm install -g @angular/cli

But again installation stops at some line shown in image

在此处输入图片说明

使用管理访问权限运行NodeJs 命令提示符(以管理员身份运行)并通过点击命令安装 AngularCli -

npm install -g @angular/cli

以管理员身份运行命令提示符并尝试命令

npm install -g -f angular-cli 

It could be because you are behind a corporate firewall.

In this case, you need to set the npm proxy settings

npm config set proxy http://proxy.com:port
npm config set https-proxy http://proxy.com:port

Installed Versions :

  • node v8.9.4
  • npm v5.6.0

I tried

npm install -g @angular/cli

This didn't work. So, I tried

npm uninstall @angular/cli
npm cache verify
npm install -g @angular/cli

But again installation stops at some line shown in image

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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