首页   注册   登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Node.js
Express
PPA for Ubuntu
ppa:chris-lea/node.js
V2EX  ›  Node.js

npm 卡在 GET 进行不下去

  •  
  •   tianshilei1992 · 2016-08-01 22:52:16 +08:00 · 1834 次点击
    这是一个创建于 1200 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大家好。我在虚拟机里面的 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
    

    死活卡在最后一行…这可是国内的源呀…不知道是怎么回事…?

    2 回复  |  直到 2016-08-01 23:09:36 +08:00
        1
    gilgamesh   2016-08-01 22:59:39 +08:00
    还在用 npm 2?
        2
    tianshilei1992   2016-08-01 23:09:36 +08:00
    @gilgamesh 版本是 2.15.8
    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   4121 人在线   最高记录 5043   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.3 · 22ms · UTC 02:54 · PVG 10:54 · LAX 18:54 · JFK 21:54
    ♥ Do have faith in what you're doing.