"EACCES" error when using Cordova on OS X

Asked

Viewed 119 times

1

Suddenly, while activating the command "Cordova run android", I get the following log

 MBP-de-Rodolfo:cordova rop$ cordova run android
/usr/local/lib/node_modules/cordova/node_modules/insight/node_modules/configstore/index.js:53
throw err;
^

Error: EACCES: permission denied, open '/Users/rop/. config/configstore/insight-Cordova.json' You don’t have access to this file.

I have tried to change permissions of folders and files, but every time I do so, when repeating the command, another file with error appears EACCESS (normally within the Cordova project folder).

I also tried to delete the file insight-cordova.json. With this I managed to execute some commands like the platform add, but while restarting computer the problem returns.

Observing: I can run the commands quietly with the sudo

1 answer

0

What Voce can try is to change the way the terminal logs in when it is opened, it was with this problem at the beginning and I made this change and it worked, no problems.

By default it logs in with bash, but by changing this option Voce can execute the basic Cordova commands without the sudo option, check the preferences in the terminal.

Another conference is whether the Cordova environment is set up exactly with all the necessary dependencies!

Node -v Gulp -v Cordova info

Check these commands and check the return of temrinal!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.