shiltian
V2EX  ›  Node.js

npm 卡在 GET 进行不下去

  •  
  •   shiltian · Aug 1, 2016 · 3485 views
    This topic created in 3575 days ago, the information mentioned may be changed or developed.

    大家好。我在虚拟机里面的 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 replies    2016-08-01 23:09:36 +08:00
    gilgamesh
        1
    gilgamesh  
       Aug 1, 2016
    还在用 npm 2?
    shiltian
        2
    shiltian  
    OP
       Aug 1, 2016
    @gilgamesh 版本是 2.15.8
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2994 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:54 · PVG 15:54 · LAX 00:54 · JFK 03:54
    ♥ Do have faith in what you're doing.