2

My Application is working fine in Browser through ionic serve .

But when I am trying to run ionic build android ,it is showing

ERROR: spawn EACCES permission denied

I already installed cordova ,ionic and Android Studio 3 times and even try this :

chmod +x hooks/after_prepare/010_add_platform_class.js

But the issue is still same. Please suggest me some Better Solution.

spawn_EACCES_ERROR

2
  • Which version of ionic you are using ? If you are using ionic v1, you should run 'sudo ionic hooks add' command to working with ionic hooks. Commented Oct 18, 2017 at 8:04
  • Yes, I am using ionic v1 and your suggestion works for me. Thanks @ Fatih Ayyildiz Commented Oct 20, 2017 at 8:21

1 Answer 1

1

You should run this command

sudo ionic hooks add

Because older version of ionic is using hooks so you should run it first.Thanks

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.