Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am getting error - Error: cannot find module 'cordova-common' when installing Cordova

Tags:

I am trying to install cordova. I simply went to the web site: https://cordova.apache.org/#getstarted

Did step one, by installing node.js

Typed in "npm install -g cordova" at a command prompt

Then tried to type in "cordova create MyApp" as the directions state in step 2.

I get this: Error: cannot find module 'cordova-common'

PLEASE HELP. I have tried several different ways to create the "MyApp", none worked, and I can't find anything on the internet about this issue specifically.

like image 340
user3637652 Avatar asked Dec 03 '15 21:12

user3637652


1 Answers

Follow this:

npm uninstall -g cordova npm install -g cordova@latest 
like image 162
Diego Mello Avatar answered Nov 13 '22 06:11

Diego Mello