Ionic Add Platform EACCES Error

后端 未结 2 984
死守一世寂寞
死守一世寂寞 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:39

    I was getting a bunch of errors when i emulate the project (iOS). After 1 day. I found with my boss that if you apply "chmod -Rv 755 inside the ionic proyect folder, it's going to work like a charm!.

    Steps:

    1. Install node.js, cordova, ionic, iOS-sim
    2. ionic start "project name" "template"
    3. cd "project path"
    4. chmod -Rv 755 * (change permissions inside the project folder scope)
    5. ionic platform add iOS (in this case)
    6. ionic build iOS
    7. ionic emulate iOS

    And it will work.

    Hope if this helps

提交回复
热议问题