Error creating project cordova

0

How to solve this error that is giving 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
    
asked by anonymous 21.02.2016 / 23:29

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 and so on). That's why you can create "empty" projects when needed.

When this error message occurs, it means that there was a problem installing Cordova, that is, some of the HelloWorld projects were not installed correctly. To resolve you have two options:

1 - Remove everything related to Cordova and install again;

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

The same error: C: \ Program Files \ nodejs \ node_modules \ cordova \ node_modules \ cordova-lib \ node_modules \

Cordova Building: C: \ Users \ USER.cordova \ lib

PS: Please remember that the correct installation must be done by following the Windows deployment steps. See more at: link

    
22.02.2016 / 15:06