Cordova install on Linux

空扰寡人 提交于 2019-12-03 12:45:18

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.

If you just need Cordova then you can download the zip file here.

You need to set the NPM registry

npm config set registry http://registry.npmjs.org/

look at the documentation :

sudo npm install -g cordova

follow following commands for installing cordova on ubuntu :
1. $ sudo apt-get install npm
2. $ sudo npm install node
3. $ sudo npm install -g cordova
4. $ cordova

if it showing no command found then use alternate :
1.$ sudo apt-get remove node
2. $ sudo apt-get install python-software-properties python g++ make
3. $ sudo add-apt-repository ppa:chris-lea/node.js
4. $ sudo apt-get update
5. $ sudo apt-get install nodejs
6. $ sudo npm install -g cordova
7. $ ln -s /usr/bin/nodejs /usr/bin/node

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!