How to fix this Error: spawn EACCES

chmod 755 hooks/path_to/hookfile.js did the trick. I think this issue happens because of missing execute permissions.

This worked for me! Thanks!

chown your_username -R

1 Like

this is the solutions that works

This worked for meā€¦THANKS

Thank you!! It works for me.

work for me, so much thanks ā€¦ :grin: :grin: :grin: :grin: :grin: :grin: :grin: :grin: :grin: :grin:

This fixed the issue for me, thanks.

chmod -R a+rwx project/

That looks absurdly overbroad to me.

For some reason it decided to work this way instead :slight_smile:
makes me wonder too

Well, it ā€œworkedā€ in the sense that an atom bomb will effectively kill a fly, but not without doing some serious damage to the surrounding area.

1 Like

chmod -R a+rwx project/
if above cmd not working then try below one

chmod -R 777 /android-sdk
its working for me

1 Like

Thanks,
This worked with me.

Worked! Thanks you very much!

wow works awesome !! Thanks for the answer

Thanks :slight_smile:

this works for meā€¦

That is a really bad idea. File permissions and executable bits are there for a reason; blindly subverting them is shortsighted.

[SOLVED]

same was here in linux if anyone have same!
go to app directory in terminal then typing

sudo chmod -R a+rwx *

sudo ionic platform add android

sudo ionic build android

all works fine!