Getting Error Message Error: spawn EACCES using IONIC Framework

后端 未结 7 1742
无人共我
无人共我 2020-12-18 21:20

I am trying to learn ionic cross platform tool. i have setup thing required for example application ionic serve is working fine but when i try to run sud

相关标签:
7条回答
  • 2020-12-18 21:58

    You can try ionic hooks add if other fix have not worked

    0 讨论(0)
  • 2020-12-18 22:01

    I tried this, it's working

          chmod +x hooks/after_prepare/010_add_platform_class.js
    
    0 讨论(0)
  • 2020-12-18 22:02

    While the given solution did take me a step further, adding execute permissions to android sdk was also needed.

    chmod +x -R /home/username/Android/Sdk
    

    see Error: spawn EACCES when trying to build Ionic app in Ubuntu 15.10

    0 讨论(0)
  • 2020-12-18 22:07

    First try to give execution permission to one file in hooks folder (010_add_platform_class.js), you can use this command:

    chmod +x hooks/after_prepare/010_add_platform_class.js
    

    If it does not work, change the permissions of complete files in sdk folder by:

    chmod +x -R /home/username/Android/Sdk
    

    If you are installed gradle in separate, give permission to that folder also:

    chmod +x -R /home/username/Android/gradle-2.3
    
    0 讨论(0)
  • 2020-12-18 22:09

    The issue is with the command 010_add_platform_class.js missing execute permission.

    You could use chmod +x hooks/after_prepare/010_add_platform_class.js to give execute permission.

    I found this solution on the Ionic framework forum at the below link. http://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/6

    0 讨论(0)
  • 2020-12-18 22:11

    Successfully Worked

    chmod +x hooks/after_prepare/010_add_platform_class.js
    
    0 讨论(0)
提交回复
热议问题