Nodejs - npm install永久冻结

时间:2017-09-09 10:58:45

标签: node.js npm install freeze

我在使用npm时遇到了奇怪的问题:安装过程会在加载阶段永久冻结。

安装nodejs之后,我尝试安装angular-cli,但它仍然停留在加载阶段:

c:\>npm install -g @angular/cli
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.3
npm info ok
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.3
npm info attempt registry request try #1 at 1:35:34 PM
npm http request GET https://registry.npmjs.org/@angular%2fcli
npm http 304 https://registry.npmjs.org/@angular%2fcli
npm info addNameTag [ '@angular/cli', 'latest' ]
[|||||..............] - loadRequestedDeps: info addNameTag [ '@angular/cli', 'latest' ]

其他软件包安装也会发生同样的事情,例如Yarn:

c:\>npm install -g yarn
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.3
npm info ok
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.3
npm info attempt registry request try #1 at 1:38:08 PM
npm http request GET https://registry.npmjs.org/yarn
npm http 304 https://registry.npmjs.org/yarn
npm info addNameTag [ 'yarn', 'latest' ]
[|||||..............] \ loadRequestedDeps: info addNameTag [ 'yarn', 'latest' ]

请帮忙,可能是什么原因以及如何解决?

0 个答案:

没有答案