2013-08-04 64 views
0

我想在Ubuntu 12.04中安裝phonegap。使用this instraction。但出現錯誤,安裝錯誤phonegap在Ubuntu中

npm http GET https://registry.npmjs.org/npm/1.3.7 
npm http 500 https://registry.npmjs.org/npm/1.3.7 
npm ERR! registry error parsing json 
npm http GET https://registry.npmjs.org/npm/1.3.7 
npm http GET https://registry.npmjs.org/npm/1.3.7 
npm ERR! Error: connect ECONNREFUSED 
npm ERR!  at errnoException (net.js:901:11) 
npm ERR!  at Object.afterConnect [as oncomplete] (net.js:892:19) 
npm ERR! { [Error: connect ECONNREFUSED] 
npm ERR! code: 'ECONNREFUSED', 
npm ERR! errno: 'ECONNREFUSED', 
npm ERR! syscall: 'connect' } 
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the 
npm ERR! 'proxy' config is set properly. See: 'npm help config' 

npm ERR! System Linux 3.2.0-51-generic-pae 
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "update" "-g" 
npm ERR! cwd /home/mridul 
npm ERR! node -v v0.10.15 
npm ERR! npm -v 1.3.5 
npm ERR! syscall connect 
npm ERR! code ECONNREFUSED 
npm ERR! errno ECONNREFUSED 
npm ERR! stack Error: connect ECONNREFUSED 
npm ERR! stack  at errnoException (net.js:901:11) 
npm ERR! stack  at Object.afterConnect [as oncomplete] (net.js:892:19) 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/mridul/npm-debug.log 
npm ERR! not ok code 0 

回答

2

修復程序是從node.js文件夾運行make test。這確定了我的系統中缺少了Curl。

sudo apt-get install curl 
+0

謝謝..我重新安裝捲曲。現在它工作了!首先刪除當前捲曲「sudo apt-get autoremove curl」然後安裝它「sudo apt-get install curl」 – mridul