Ionic Add Platform EACCES Error

后端 未结 2 923
死守一世寂寞
死守一世寂寞 2021-02-14 01:03

Whenever I use ionic platform add [platformname] It gives me this error

Error: spawn EACCES
at exports._errnoException (util.js:746

2条回答
  •  囚心锁ツ
    2021-02-14 01:28

    It seems that the unpacked project has incorrect permissions. This answer suggested to change the permissions of hooks/after_prepare/010_add_platform_class.js to 755. But the solution from the Ioinc forum showed another easy way to solve this -- just run

    ionic hooks add
    

    after you create the project and change to your project directory. Then run:

    ionic platform add ios
    

    will success without errors.

提交回复
热议问题