大家好。我在虚拟机里面的 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 npm@2.15.8
npm info using node@v4.4.7
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
死活卡在最后一行…这可是国内的源呀…不知道是怎么回事…?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.