V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tianshilei1992
V2EX  ›  Node.js

npm 卡在 GET 进行不下去

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

    大家好。我在虚拟机里面的 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
    gilgamesh
        1
    gilgamesh  
       2016-08-01 22:59:39 +08:00
    还在用 npm 2?
    tianshilei1992
        2
    tianshilei1992  
    OP
       2016-08-01 23:09:36 +08:00
    @gilgamesh 版本是 2.15.8
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2547 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 01:15 · PVG 09:15 · LAX 17:15 · JFK 20:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.