How to fix this Subproject Path: CordovaLib Error: spawn EACCES

I use mac Sierra
How to fix this Error

Subproject Path: CordovaLib

  • Cordova: Cannot add android platform, getting EACCES Error
  • Error: Cannot find module '../lib/utils/unsupported.js' while using Ionic
  • angular-socket-io io is not defined
  • Could not download image with s3 getSignedUrl('getObject..) and returns Signature does not match
  • Phonegap installation issue (shasum check failed)
  • Ionic - Cordova CLI not installed
  • Error: spawn EACCES
    Mac Screen

  • Cannot run ionic. receives “No command 'ionic' found”
  • Cordova File Transfer to Node Server
  • Cordova - Error code 1 for command | Command failed for
  • Cannot run most cordova commands without using sudo
  • “connect ECONNREFUSED” with phonegap
  • How do you completely remove Ionic and Cordova installation from mac?
  • 3 Solutions collect form web for “How to fix this Subproject Path: CordovaLib Error: spawn EACCES”

    You will need to make gradlew executable which resides in platforms folder in your ionic project at following path

    /Users/*<your ionic project path>*/platforms/android/gradlew
    

    For MAC

    sudo chmod 755 /Users/<your ionic project path>/platforms/android/gradlew
    

    where chmod 755 stands for : you allow everyone to read and execute the file, and the file owner is allowed to write to the file as well. If you apply 755 to a directory, it means that everyone can go to it and get its file listing.

    I fixed it by making gradle executable

    chmod +x ~/Library/Android/sdk/tools/templates/gradle/wrapper/gradlew
    

    I fixed it by giving permissions on app folder
    try:

    sudo chmod -R u+rwx /yourIonicAppFolder
    
    Node.js is the Best Javascript runtime in the world.