I don’t know why the latest version caused such a problem, but when I return to the version of the cord and the phone version in version 3.x, the problem disappeared.
Check available versions;
npm view phonegap versions
To delete the current version
npm uninstall -g phonegap
To set a specific pre. version
npm install -g phonegap@3.5.0-xxx
You can use the same commands for the cord frame.
An alternative solution without installing older versions . (If you had a phone game project before, and you had problems after updating the framework versions)
Install the latest versions of both Cordova and Phonegap, then create your project with the following command;
cordova create projectName com.example.projectName projectName
Then copy the .cordova folder from one of the projects that you created earlier, and for using the "phonegap build" command without errors. Then paste it into your new main project path, where the www folder is also located.
Here you go, now you can run phone table commands without a build failure.
source share