节点js npm安装github包失败

时间:2014-09-16 13:42:18

标签: node.js git ubuntu github npm

目前正在尝试安装节点js模块,其中一些已安装正常,但那些需要gihub说npm ERR!提取失败,例如 npm install socket.io给出

  

npm ERR!获取失败https://github.com/LearnBoost/node-XMLHttpRequest/archive/0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz

     

ws@0.4.31 install /home/robert/node_modules/socket.io/node_modules/engine.io/node_modules/ws   (node-gyp rebuild 2> builderror.log)|| (退出0)

     

make:输入目录/home/robert/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory / home / robert / node_modules / socket.io / node_modules / engine.io / node_modules / ws / build'

我运行了npm config set registry“http://registry.npmjs.org/” 和npm config set strict-ssl false

是否可以从zip文件安装npm更新?因为我可以通过firefox访问失败的github网址,并以这种方式下载它们。

我在代理后面运行,但已将其添加到npm配置文件和apt.conf文件中,这样我可以正确地获取或git克隆,任何想法? 我正在运行ubuntu服务器,14.04已完全更新

1 个答案:

答案 0 :(得分:0)

问题看起来像你的代理问题,以及他如何处理github访问。 请使用本网站的搜索功能和google,您会发现许多相关问题。

我认为这个问题可以帮到你: git is blocked, how to install npm modules

P.S。 https://www.google.com/search?btnG=1&pws=0&q=npm+github+proxy&gws_rd=ssl

相关问题