"EACCES" error when using Cordova on OS X [duplicate]

1

Suddenly, when I run 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 do not have access to this file.

I have tried to change folder and file permissions, but whenever I do, when I repeat the command, another file with EACCESS error appears (usually inside the Cordova project folder).

I also tried to delete the file insight-cordova.json . With this I was able to execute some commands like platform add , but when restarting the computer the problem comes back.

Note: I can run the commands quietly with sudo

    
asked by anonymous 19.06.2016 / 23:25

1 answer

0

What you can try is to change the way the terminal logs in when it is opened, I had this problem at first and I made that change and it worked, no problem.

By default he logs in with bash, but changing this option you can execute the basic commands of the cord without the sudo option, check the preferences in the terminal.

Another conference is whether the CORD environment is configured exactly with all the dependencies needed!

node -v gulp -v cordova info

Check these commands and check the temrinal's return!

    
20.06.2016 / 22:01