How to install Cordova correctly on ubuntu 16.04 Lts
1 min readDec 29, 2017
1.
run
nodejs --version
if no number is displayed
Install Node.js via package manager
Run this
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
2.
Run
sudo npm install -g cordova
3.
run
sudo add-apt-repository ppa:cordova-ubuntu/ppa
sudo apt-get update
sudo apt-get install cordova-cli
4.
Delete this folder Content
/usr/share/cordova-cli
5.
Copy this folder Content
/home/“Your User ”/.npm-global/lib/node_modules/cordova
in this Folder
/usr/share/cordova-cli
6.
Run
cordova --version
If you got a number it’s OK