Error: spawn EACCES when adding Cordova plugin

Im trying to install cordova-spotify. I had it working a couple days ago. I uninstalled it then tried to reinstall it and I’ve been getting this error ever since. All my other plugins work.

I run this command ionic cordova plugin add cordova-spotify and I get this error:

        Installing "cordova-spotify" for ios
        Plugin dependency "es6-promise-plugin@4.1.0" already fetched, using that version.
        Dependent plugin "es6-promise-plugin" already installed on ios.
        Running command: /Users/mattietea/Desktop/turn_v2/plugins/cordova-spotify/package.sh
        /Users/mattietea/Desktop/turn_v2
        Failed to install 'cordova-spotify': Error: spawn EACCES
        at exports._errnoException (util.js:1016:11)
        at ChildProcess.spawn (internal/child_process.js:317:11)
        at Object.exports.spawn (child_process.js:491:9)
        at Object.exports.spawn
        (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/superspawn.js:134:31)
        at runScriptViaChildProcessSpawn
        (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:226:23)
        at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:167:16)
        at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:133:20
        at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
        at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
        at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
        Error: spawn EACCES

Here are some of the versions I’m using:

"@ionic/app-scripts": "1.3.8",
"@ionic/cli-plugin-cordova": "1.4.0",
"@ionic/cli-plugin-ionic-angular": "1.3.1",

I’m on a Mac if that means anything.

Thanks!

What is your ionic info output?
What do you get when you run cordova plugin add cordova-spotify --debug?

Here is my info output:

global packages:

    @ionic/cli-utils : 1.4.0
    Ionic CLI        : 3.4.0

System:

    Node       : v8.1.2
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 5.0.4

Adding the debug flat gives me the same output

cordova plugin add cordova-spotify --debug
Installing "cordova-spotify" for ios
Plugin dependency "es6-promise-plugin@4.1.0" already fetched, using that version.
Dependent plugin "es6-promise-plugin" already installed on ios.
Running command: /Users/mattietea/Desktop/turn_v2/plugins/cordova-spotify/package.sh /Users/mattietea/Desktop/turn_v2
Failed to install 'cordova-spotify': Error: spawn EACCES
    at exports._errnoException (util.js:1016:11)
    at ChildProcess.spawn (internal/child_process.js:317:11)
    at Object.exports.spawn (child_process.js:491:9)
    at Object.exports.spawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/superspawn.js:134:31)
    at runScriptViaChildProcessSpawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:226:23)
    at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:167:16)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:133:20
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
Error: spawn EACCES

Let me know if you need anything else! Thanks!

Seems to be a known problem:

1 Like

Oh god, spent so much time trying to fix this! I should have checked there! Thanks for the help!

1 Like