【问题标题】:Installation error phonegap in ubuntuubuntu中安装错误phonegap
【发布时间】:2013-08-05 05:35:44
【问题描述】:

我正在尝试在 ubuntu 12.04 中安装 phonegap。使用this 指令。但是出现了错误,

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

【问题讨论】:

    标签: json node.js ubuntu cordova npm


    【解决方案1】:

    我的解决方法是从 node.js 文件夹运行 make test。这表明我的系统中缺少 Curl。

    sudo apt-get install curl
    

    【讨论】:

    • 谢谢.. 我重新安装 curl。现在它工作了!首先删除当前的卷曲“sudo apt-get autoremove curl”然后安装它“sudo apt-get install curl”
    猜你喜欢
    • 1970-01-01
    • 2014-01-11
    • 2014-07-27
    • 2015-01-29
    • 1970-01-01
    • 2014-04-28
    • 1970-01-01
    • 2015-05-11
    • 2016-10-17
    相关资源
    最近更新 更多