Error spawn EACCES


#1

I tried “ionic hooks add” command for solving this but not able to solve.
When I’m trying to build android using “ionic build android” command it gives error.
I don’t know why it’s happening.

Can anyone help me.


#2

any updates on this?


#3

I don’t understand the problem. What happens when exactly? Please also include the complete error messages and the output of ionic info. Thanks.


#4

i fixed the issue with changing permissions, but i now get another error: ENOENT: no such file or directory, mkdir 'build/platforms/android/res/drawable’
when trying to build…

Ionic Info:
Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.11.0
Xcode version: Xcode 8.3.3 Build version 8E3004b

Edit - got the Error: spawn EACCES error again


#5

For me it was a problem of android sdk, i just remove my all old sdk and installed it again. So my problem was solved.
I think you should try it.


#6

It was a problem because of android sdk.
I installed all sdk again and my problem was solved.
It working perfectly now.