大家好。我在虚拟机里面的 Ubuntu 16.04.1 里面运行 npm install ,都会卡在 GET 那一步。 比如,我运行的指令是:
npm install -g cnpm --registry=https://registry.npm.taobao.org --verbose
输出的信息是:
npm info it worked if it ends with ok
npm verb cli [ '/home/shilei/Applications/node/bin/node',
npm verb cli '/home/shilei/bin/npm',
npm verb cli 'install',
npm verb cli '-g',
npm verb cli 'cnpm',
npm verb cli '--registry=https://registry.npm.taobao.org',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb install initial load of /home/shilei/Applications/node/lib/package.json
npm verb readDependencies loading dependencies from /home/shilei/Applications/node/lib/package.json
npm verb cache add spec cnpm
npm verb addNamed "latest" is being treated as a dist-tag for cnpm
npm info addNameTag [ 'cnpm', 'latest' ]
npm verb addNameTag registry:https://registry.npm.taobao.org/cnpm not in flight; fetching
npm verb request uri https://registry.npm.taobao.org/cnpm
npm verb request no auth needed
npm info attempt registry request try #1 at 10:51:00 PM
npm verb request id a593703c61965b27
npm http request GET https://registry.npm.taobao.org/cnpm
死活卡在最后一行…这可是国内的源呀…不知道是怎么回事…?
1
gilgamesh 2016-08-01 22:59:39 +08:00
还在用 npm 2?
|
2
tianshilei1992 OP @gilgamesh 版本是 2.15.8
|