Error checking version of Apache Cordova

0

When I check the version of Apache Cordova in Ubuntu the message below appears.

Error: EACCES: permission denied, open '/home/henrique/.config/configstore/insight-cordova.json'
You don't have access to this file.

How do I resolve?

    
asked by anonymous 11.05.2018 / 00:10

1 answer

0

You must change the owner of the files in the directory:

# Se estiver usando distribuições Linux
/home/NOME_DO_USUARIO/.config/configstore/

# Se estiver utilizando Mac
/Users/NOME_DO_USUARIO/.config/configstore/

Just run the following from the terminal:

# Se estiver usando distribuições Linux
sudo chown -R NOME_DO_USUARIO /home/NOME_DO_USUARIO/.config/configstore/

# Se estiver utilizando Mac
sudo chown -R NOME_DO_USUARIO /Users/NOME_DO_USUARIO/.config/configstore/

Explanation

  • sudo : Indicates that the command will be run by root .
  • chown : Change the owner of a directory or file.
  • -R : This parameter indicates that the change will be recursively.
  • USERNAME : Change to the name of your user.
11.05.2018 / 04:29