Node.js – 连接版本不兼容

我在机器上安装的连接版本是2.3.4。 当我安装像节点督察,mongoose等包它说我的连接版本应该在1.8到1.9之间,并中止。

我应该卸载我的连接并安装旧版本?

错误日志:

npm ERR! message No compatible version found: connect@'>=1.8.5- <1.9.0-' npm ERR! message Valid install targets: npm ERR! message ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.1.0","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.5.8","0.5.9","0.5.10","1.0.0","1.0.1","2.2.2","2.3.0","2.3.1","2.3.2","2.3.3","1.9.1","2.3.4"] 

完整日志:

 npm http GET https://registry.npmjs.org/node-inspector npm http 200 https://registry.npmjs.org/node-inspector npm http GET https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/connect npm http GET https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/connect npm ERR! Error: No compatible version found: connect@'>=1.8.5- <1.9.0-' npm ERR! Valid install targets: npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.1.0","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.5.8","0.5.9","0.5.10","1.0.0","1.0.1","2.2.2","2.3.0","2.3.1","2.3.2","2.3.3","1.9.1","2.3.4","2.3.5"] npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:506:10) npm ERR! at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:452:17) npm ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:427:44) npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:419:5 npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:136:7) npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:230:7 npm ERR! at Object.oncomplete (fs.js:297:15) npm ERR! [Error: No compatible version found: connect@'>=1.8.5- <1.9.0-' npm ERR! Valid install targets: npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.1.0","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.5.8","0.5.9","0.5.10","1.0.0","1.0.1","2.2.2","2.3.0","2.3.1","2.3.2","2.3.3","1.9.1","2.3.4","2.3.5"]] npm ERR! You may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 3.0.0-17-generic-pae npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-inspector" 

在Win7中使用nodejsV0.8.0时遇到同样的错误。

我在使用V0.8.1的时候修好了,你可以试试看: http ://nodejs.org/dist/v0.8.1/