Bin*_*gev 5 node.js npm-install angular-cli angular
我是 AngularJS 的新手,刚刚开始在线课程。
我正在尝试在运行 Windows 7 的计算机上安装 angular CLI。我以管理员身份打开命令行并运行npm install -g @angular/cli. 安装开始,几分钟后我收到一个错误:

I see the notification "operation not permitted", but I am the administrator of the computer and the command line I run as administrator.
What am I doing wrong? The same installation I did on my laptop at home and it was successful.
I am checking with our IT support about other possible causes and will appreciate any help.
This is not a duplicate of Fail to install npm package “npm ERR! errno -4048” or npm install -g angular-cli fails.
Ignoring the error and running gn -v I get the following:

Is this correct? Was Angular CLI installed?
这些问题是由于公司代理设置造成的。
请与您的管理员联系以获取 http 或 https 的代理。
它将是这样的:
http_proxy = http://http.myproxy.com:8000
https_proxy = http://http.myproxy.com:8000
将 myproxy 替换为公司代理的名称。
然后转到命令提示符并运行以下命令来设置代理。稍后您可以运行任何命令,例如npm install -g @angular/cli运行。会起作用的
npm config set proxy http://http.myproxy.com:8000
npm config set https-proxy http://http.myproxy.com:8000
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9535 次 |
| 最近记录: |