0x1406F40
V2EX  ›  Node.js

npm 总是卡住是怎么回事?

  •  
  •   0x1406F40 · Oct 14, 2015 · 9964 views
    This topic created in 3903 days ago, the information mentioned may be changed or developed.

    是墙的问题还是什么,怎么我用了 vpn 还是卡在那里 ?

    7 replies    2015-10-14 23:08:31 +08:00
    cxbig
        1
    cxbig  
       Oct 14, 2015 via iPhone
    墙的可能性比较大,主要就是各种组件的 git 仓库 url 访问不成功或很慢。
    rangercyh
        2
    rangercyh  
       Oct 14, 2015   ❤️ 1
    建议使用淘宝的国内镜像:--registry=http://registry.npm.taobao.org
    zythum
        3
    zythum  
       Oct 14, 2015
    可以试试 cnpm 。 有可能背墙了。
    chairuosen
        4
    chairuosen  
       Oct 14, 2015
    一个斜杠在那转悠是下载呢
    somethin
        5
    somethin  
       Oct 14, 2015
    加个--verbose 看看问题出在哪儿
    0x1406F40
        6
    0x1406F40  
    OP
       Oct 14, 2015
    registry 加上了, proxy 也用上了,但是每到这个地方斜杠就打转个不停,再也不更新了。

    verbose 信息
    --------------------
    npm http 304 https://registry.npm.taobao.org/yargs
    npm verb headers { server: 'nginx/1.1.19',
    npm verb headers date: 'Wed, 14 Oct 2015 08:39:47 GMT',
    npm verb headers connection: 'keep-alive',
    npm verb headers etag: '"2a9ba-y4tzkZnybbf80ZBheSTfvg"',
    npm verb headers 'x-readtime': '523' }
    npm verb etag https://registry.npm.taobao.org/yargs from cache
    npm verb get saving yargs to /Users/mac/.npm/registry.npm.taobao.org/yargs/.cache.json
    npm verb addNamed "3.27.0" is a plain semver version for yargs
    npm verb afterAdd /Users/mac/.npm/yargs/3.27.0/package/package.json not in flight; writing
    npm verb afterAdd /Users/mac/.npm/yargs/3.27.0/package/package.json written
    /
    qqqppp9998
        7
    qqqppp9998  
       Oct 14, 2015
    用 cnpm 吧,应该会快不少
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2478 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 6b34f497 · 41ms · UTC 10:58 · PVG 18:58 · LAX 03:58 · JFK 06:58
    ♥ Do have faith in what you're doing.