Use a project that was created with windows

I was using windows for the construction of my work and all my projects kept it in a separate partition F :.
Now install elementary (ubuntu 14.04) and perform all the configuration and installation to use ionic, my question is what am doing well these operations? and I try to build my project and give me permission error

    root@newmesis-305V4A-305V5A:/media/newmesis/Respaldo/aplicaciones/ElVencedor# ionic build android
Updated the hooks directory to have execute permissions
running cordova build android
Running command: /media/newmesis/Respaldo/aplicaciones/ElVencedor/hooks/after_prepare/010_add_platform_class.js /media/newmesis/Respaldo/aplicaciones/ElVencedor
execvp(): Permission denied
Running command: /media/newmesis/Respaldo/aplicaciones/ElVencedor/hooks/after_prepare/uglify.js /media/newmesis/Respaldo/aplicaciones/ElVencedor
execvp(): Permission denied
Running command: /media/newmesis/Respaldo/aplicaciones/ElVencedor/platforms/android/cordova/build 
execvp(): Permission denied
ERROR building one of the platforms: Error: /media/newmesis/Respaldo/aplicaciones/ElVencedor/platforms/android/cordova/build: Command failed with exit code EACCES
You may not have the required environment or OS to build this project
Error: /media/newmesis/Respaldo/aplicaciones/ElVencedor/platforms/android/cordova/build: Command failed with exit code EACCES
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
    at ChildProcess.EventEmitter.emit (events.js:95:17)
    at Process.ChildProcess._handle.onexit (child_process.js:795:12)
1 Like

I had a few access rights around the hooks on one one machine as well.

Try the following

cordova platform remove android
cordova platform add android
ionic hooks add
cordova build android

For me

ionic hooks add

managed to solve the problem which apparently was that some hooks didn’t have the execute permission after being source-controlled.

Also have some weird issues or custom hook getting broken when using ionic platform add, this is why now I only use cordova platform add.

perform these steps but I’m still with the same message

@newmesis are you running the commands with sudo? ionic hooks add works fine for me