Folowed the ubuntu/ cordova installations here. Everything works fine until I get to the command cordova build ubuntu. I always get this error:
Building Desktop Application...
ERROR building one of the platforms: Error: /var/www/html/bye/platforms/ubuntu/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /var/www/html/bye/platforms/ubuntu/cordova/build: Command failed with exit code 1
at ChildProcess.whenDone (/usr/share/cordova-cli/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)"
Please could someone tell me how to fix this or what I'm doing wrong to get the error?
I've tried reinstalling, creating an icon tag in the config.xml to replace the default icon and I've tried installing different version of Cordova (currently on 5.4.0).