我正在树莓派上进行以下操作,以设置Google Coder:
sudo apt-get install nodejs npm git
git clone https://github.com/googlecreativelab/coder
cd coder/coder-base/
npm install
在我输入第四个命令“npm install”之前,它运行得很好,但是当我这样做时,我会收到以下错误:
npm ERR! 错误: 从仓库获取失败:express/3.1.0 npm ERR! 位于 /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12 npm ERR! 在 cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9) npm ERR! 在 Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18) npm ERR! 在 Request.callback (/usr/lib/nodejs/request/main.js:119:22) npm ERR! 在 Request. (/usr/lib/nodejs/request/main.js:212:58) npm ERR! 在 Request.emit (events.js:88:20) npm ERR! 在 ClientRequest. (/usr/lib/nodejs/request/main.js:209:10) npm ERR! 在 ClientRequest.emit (events.js:67:17) npm ERR! 在 CleartextStream.socketErrorListener (http.js:1188:9) npm ERR! 在 CleartextStream.emit (events.js:67:17) npm ERR! 您可以在以下链接报告此日志: npm ERR! http://bugs.debian.org/npm npm ERR! 或使用 npm ERR! reportbug --attach /home/pi/coder/coder-base/npm-debug.log npm npm ERR! npm ERR! 系统 Linux 3.10.25+ npm ERR! 命令 "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" npm ERR! 当前工作目录 /home/pi/coder/coder-base npm ERR! node -v v0.6.19 npm ERR! npm -v 1.1.4 npm ERR! 信息 failed to fetch from registry: express/3.1.0 npm ERR! npm ERR! 可以在以下文件中找到详细的日志信息: npm ERR! /home/pi/coder/coder-base/npm-debug.log npm not ok然后我尝试使用"sudo npm install -g"运行,这需要更长时间,但最终出现相同的错误。
我还尝试运行"sudo npm config set registry http://registry.nmpjs.org/pi-gpio"。
有人能指点我正确的方向来解决或规避这个问题吗?
http://registry.npmjs.org/
。 - user568109