执行“npm install”时出错

我是新来的。 我不知道这是否必须认真对待,或者我可以继续我所要做的。 只有在这里,我可以发布它的全部细节。

npm ERR! error installing express@3.3.5 npm ERR! error rolling back express@3.3.5 Error: UNKNOWN, unknown error '/home/ubuntu/vengit/node_modules/express' npm ERR! Unsupported npm ERR! Not compatible with your version of node/npm: connect@2.8.5 npm ERR! Required: {"node":">= 0.8.0"} npm ERR! Actual: {"npm":"1.1.4","node":"0.6.12"} npm ERR! npm ERR! System Linux 3.2.0-40-virtual npm ERR! command "node" "/usr/bin/npm" "install" npm ERR! cwd /home/ubuntu/vengit npm ERR! node -v v0.6.12 npm ERR! npm -v 1.1.4 npm ERR! code ENOTSUP npm ERR! message Unsupported npm ERR! errno {} npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/mime npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/ubuntu/vengit/npm-debug.log npm not ok 

该错误是因为Express的依赖关系( 连接 )需要节点0.8.0或更高版本。

 npm ERR! Required: {"node":">= 0.8.0"} npm ERR! Actual: {"npm":"1.1.4","node":"0.6.12"} 

而且,由于您安装了Node 0.6.12,您将无法安装Express 3.3.5。

您可以尝试安装较早版本的Express或更新Node至less0.8.0。