我一直在尝试安装SailsJS 3小时。
我现在已经创建了一个全新的Linux Ubuntu 12.04 64位VM,并且已经关注了如何安装NodeJS / SailsJS(包括文档中的教程)的十几个不同的教程,但无济于事。
我得到的错误如下(当我尝试运行sudo npm -g install sails
时):
npm ERR! Error: connect ECONNREFUSED
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:892: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 ERR! System Linux 3.8.0-29-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "-g" "install" "sails"
npm ERR! cwd /home/asdf/Desktop
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! syscall connect
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! stack Error: connect ECONNREFUSED
npm ERR! stack at errnoException (net.js:901:11)
npm ERR! stack at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/asdf/Desktop/npm-debug.log
npm ERR! not ok code 0
有人知道可能导致我的问题吗?我已经非常精确地按照教程进行了全新安装的Ubuntu 12.04,现在我只是把头发拉出来了。
答案 0 :(得分:5)
答案 1 :(得分:3)
npmjs.org今天遇到了一些停机问题。等一下再试。