cordova build Command failed with exit code EACCES

后端 未结 9 1694
半阙折子戏
半阙折子戏 2020-12-13 23:40

Cordova build failed with error code : EACCESS

$ cordova build android
Running command: /home/user/proj1/platforms/android/cordova/build 
execvp(): Permissi         


        
9条回答
  •  伪装坚强ぢ
    2020-12-14 00:35

    My advice is to remove the platforms directory, and reinstall each platform.

    $ cd 
    $ rm -r platforms  # -or- manually remove the directory
    $ cordova platform add   # ios, android, ...
    

    Running chmod a+x build (as suggested in the accepted answer) doesn't fix cordova platform rm permission issues. Safer (and easier) to restore each platform to it's default state, instead of hacking (and remembering) permission changes for individual files / directories.

提交回复
热议问题