Failed to install 'cordova-plugin-fcm': Error: spawn EACCES
at exports._errnoException (util.js:1024:11)
at ChildProcess.spawn (internal/child_process.js:325:11)
at Object.exports.spawn (child_process.js:493:9)
at exports.spawn (.../platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:134:31)
at .../platforms/android/cordova/lib/builders/GradleBuilder.js:261:16
at _fulfilled (.../platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (.../platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (.../platforms/android/cordova/node_modules/q/q.js:816:13)
at .../platforms/android/cordova/node_modules/q/q.js:877:14
at runSingle (.../platforms/android/cordova/node_modules/q/q.js:137:13)
Error: spawn EACCES
To solved that, I executed the command below this lines from the cordova root project directory:
sudo chmod -R 777 .
Thats all, so I was able to run the plugin installation again:
cordova plugin add cordova-plugin-fcm
...and run like a charm :)
No comments:
Post a Comment