Error when creating project cordova-lib cordova-app-hello-world missing

I would like to start a new cordova project on Windows 10

I run the command

cordova create MyApp com.myapp myapp

I am getting the following message

Creating a new cordova project.
Could not find directory : C:\Program Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\cordova-app-hello-world

My stack : node 4.2.1 npm 3.3.8 cordova 5.3.3

How can I fix it?

Upvotes: 2

Views: 2186

Answers (2)

Benoît Clouet
Benoît Clouet

Reputation: 71

The same goes for just :

cd /usr/local/lib/node_modules/cordova/node_modules/cordova-lib
npm install

I'm just wondering why this is not done when installing cordova.

Upvotes: 7

The cordova-lib node_modules repository is empty !

Run command

npm install

to the repository

C:\Program Files\nodejs\node_modules\cordova\node_modules\cordova-lib\

Upvotes: 6

Related Questions