search

Home  >  Q&A  >  body text

node.js - npm安装模块等待

我访问http://registry.npmjs.org/没有问题,直接下载http://registry.npmjs.org/jade/-/jade-1.9.1.tgz也没有问题,为什么用npm命令行下载的时候一直处于等待状态,那个斜杠不停的转啊转。。

PHPzPHPz2785 days ago626

reply all(4)I'll reply

  • 高洛峰

    高洛峰2017-04-17 11:34:07

    It is recommended to use domestic mirror sites, you can refer to these two articles

    cnpmjs.org The counterattack of domestic npm
    http://segmentfault.com/a/1190000000362110
    Taobao NPM mirror
    http://segmentfault.com/a/1190000000471219

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:34:07

    Stuck is not necessarily a network problem. It is best to use the task manager to see which command is stuck. Sometimes it will get stuck due to lack of compilation dependencies (this should be considered a bug, and an error should be reported for missing dependencies).

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:34:07

    It should be no problem to download to that network, just wait, it’s so frustrating when there is no progress prompt... =.=

    reply
    0
  • 迷茫

    迷茫2017-04-17 11:34:07

    Correct answer upstairs

    reply
    0
  • Cancelreply