2012-06-28 54 views
1

我的連接版本安裝在機器上是2.3.4。當我安裝像節點督察,貓鼬等包它說我的連接版本應該介於1.8到1.9之間,並終止。Node.js - 連接版本不兼容

我應該卸載我的連接並安裝舊版本嗎?

錯誤日誌:

npm ERR! message No compatible version found: [email protected]'>=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: [email protected]'>=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: [email protected]'>=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!  <[email protected]> 

npm ERR! System Linux 3.0.0-17-generic-pae 
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-inspector" 
+0

能否請您提供整個日誌內容? 'node-inspector'本身似乎不依賴於'connect'(它不應該)。 – penartur

+0

@ penartur我編輯帖子並附上完整日誌 – Vinoth

+0

你的'package.json'中有什麼'dependencies'和'devDependencies'? (如果整個'package.json'不包含任何機密信息,那麼這將很有用)。 – penartur

回答