Node.js-连接版本不兼容

Node.js-连接版本不兼容,node.js,Node.js,我在计算机上安装的connect版本是2.3.4。当我安装node inspector、mongoose等软件包时,它会说我的连接版本应该在1.8到1.9之间,并且会中止 我应该卸载connect并安装旧版本吗 错误日志: npm ERR! message No compatible version found: connect@'>=1.8.5- <1.9.0-' npm ERR! message Valid install targets: npm ERR! message ["

我在计算机上安装的connect版本是2.3.4。当我安装node inspector、mongoose等软件包时,它会说我的连接版本应该在1.8到1.9之间,并且会中止

我应该卸载connect并安装旧版本吗

错误日志:

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错误!消息未找到兼容版本:connect@'>=1.8.5-=1.8.5-=1.8.5-在Win7中使用nodejsV0.8.0时,我遇到相同的错误


我在使用V0.8.1时修复了它,您可以试试:

您能提供完整的日志内容吗<代码>节点检查器
本身似乎不依赖于
连接
(它也不应该如此)。@penartur我编辑了文章并附上了完整的日志,以及
包.json中的
依赖项
devdependency
?(如果不包含任何机密信息,查看整个
package.json
会很有用)。这是我的package.json文件,用于connect->我指的是你的package.json,而不是connect的。或者我误解了你:你是如何安装这些软件包的,你是在全球范围内还是为某个项目安装这些软件包的?
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"