Error checking Apache Cordova version

Asked

Viewed 41 times

0

When I go to check the version of Apache Cordova on Ubuntu appears the message below.

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

How do I fix?

1 answer

0


You must change the owner of the directory files:

# 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 by eating in 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 executed by root.
  • chown: Changes the owner of a directory or file.
  • -R: This parameter indicates that the change will be recursive.
  • NOME_DO_USUARIO: Change to your user name.

Browser other questions tagged

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