Cordova在Linux上安装 [英] Cordova install on Linux
本文介绍了Cordova在Linux上安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道如何在Ubuntu / xUbuntu上安装Cordova?
Does anyone know how to install Cordova on Ubuntu/xUbuntu?
My attempts at executing npm install cordova as directed from the link and other sources don't work.
我收到以下长长的错误讯息:
I get the following long error message:
root@li141-82:/var/www/mysite# npm install cordova
npm http GET https://registry.npmjs.org/cordova
npm ERR! Error: failed to fetch from registry: cordova
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.g (events.js:156:14)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1256:7)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /var/www/mysite/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.11.6-x86_64-linode35
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "cordova"
npm ERR! cwd /var/www/mysite
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: cordova
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/mysite/npm-debug.log
npm not ok
推荐答案
我想你正在寻找 PhoneGap ,这是一个基于Cordova的工具。要安装PhoneGap,您需要安装节点,然后 sudo npm install -g phonegap
。
I think you're looking for PhoneGap, a tool which is based on Cordova. To install PhoneGap you need to install node, then sudo npm install -g phonegap
.
则可以下载此处的zip文件。
If you just need Cordova then you can download the zip file here.
这篇关于Cordova在Linux上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文