Error creating Cordova project

Asked

Viewed 80 times

0

How to resolve this error in Cordova 5.1.1 with Node 4.1.1?

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

1 answer

0

When you install Cordova it stores in your installation folders a version of Helloworld of the project for each platform (one Android pro, another Windows Phone pro, IOS, etc.). This is why it is possible to create "empty" projects when needed.

When this error message happens, it means that there was some problem in the installation of Cordova, that is, some of the Helloworld projects was not installed correctly. To solve you have two options:

1 - Remove everything related to Cordova and install again;

2 - Download the folders of each platform from the Cordova repository and manually install them in the directories that did not receive the correct installation (I already did this. It works, but it will be a lot of trouble until it is beautiful). Directories to be explored:

The same of Error: C: Program Files nodejs node_modules Cordova node_modules Cordova-lib node_modules\

Intalação do Cordova: C: Users USUARIO.Cordova lib

PS: Remember that the correct installation should be done by following the steps of Windows deployment. See more on: https://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html

Browser other questions tagged

You are not signed in. Login or sign up in order to post.