2016-01-13 52 views
0

我使用OVH CLOUD VPS和NodeJS/MeteorJS时遇到了问题。 当试图做流星更新我收到:nodejs或流星 - 如何让它在OVH Cloud VPS上工作

Unable to update package catalog (are you offline?) 

If you are using Meteor behind a proxy, set HTTP_PROXY and HTTPS_PROXY environment variables or see this page for more details: https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-proxy 

当试图做任何NPM安装包我得到:

npm ERR! Error: connect ECONNREFUSED 
npm ERR!  at errnoException (net.js:904:11) 
npm ERR!  at Object.afterConnect [as oncomplete] (net.js:895:19) 
npm ERR! { [Error: connect ECONNREFUSED] 
npm ERR! code: 'ECONNREFUSED', 
npm ERR! errno: 'ECONNREFUSED', 
npm ERR! syscall: 'connect' } 
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the 
npm ERR! 'proxy' config is set properly. See: 'npm help config' 

我一直在谷歌上搜索了一段时间,并让NPM组注册表所有sollutions或添加/删除npm配置(设置/删除)代理不会带来溶剂。

有没有人解决了如何在OVH VPS上使用NPM/METEOR?

+0

你已经找到了流星了ovh.org?我被困在“ - 设置环境”20分钟 – youbetternot

+0

没有。这是你唯一的希望:'''npm config set registry http:// registry.npmjs.org /''' 但是不要期待奇迹.. –

回答

0

类似的问题在这里: npm not working - "read ECONNRESET"

答案,我认为是:

npm config set registry http://registry.npmjs.org/

https

+0

我已经检查过其他的stackoverflow上的问题,他们都没有带来sollution OVH VPS云上的npm/node –

+0

您是否尝试过简单的npm安装来查看您是否可以访问注册表? – MrE

+0

ovh可能有自己的npm注册表,所以你需要找出网址是什么。我会尝试一些事情,如registry.npmjs.ovh.net的东西或那种 – MrE