Error: EACCES, permission denied '/root/.config/configstore/insight-bower.yml' | |
25-Sep-2014 10:54:55 | You don't have access to this file. |
25-Sep-2014 10:54:55 | |
25-Sep-2014 10:54:55 | at Object.fs.openSync (evalmachine.<anonymous>:438:18) |
25-Sep-2014 10:54:55 | at Object.fs.readFileSync (evalmachine.<anonymous>:289:15) |
25-Sep-2014 10:54:55 | at Object.create.all.get (/usr/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:33:29) |
25-Sep-2014 10:54:55 | at Object.Configstore (/usr/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:26:44) |
25-Sep-2014 10:54:55 | at new Insight (/usr/lib/node_modules/bower/node_modules/insight/lib/index.js:26:34) |
25-Sep-2014 10:54:55 | at ensureInsight (/usr/lib/node_modules/bower/lib/util/analytics.js:14:19) |
25-Sep-2014 10:54:55 | at Object.setup (/usr/lib/node_modules/bower/lib/util/analytics.js:29:9) |
25-Sep-2014 10:54:55 | at Object.<anonymous> (/usr/lib/node_modules/bower/bin/bower:72:11) |
25-Sep-2014 10:54:55 | at Module._compile (module.js:456:26) |
25-Sep-2014 10:54:55 | at Object.Module._extensions..js (module.js:474:10) |
25-Sep-2014 10:54:55 | There was an error while executing bower. |
I just fixed it in Windows. I have done three things, which one have fixed it I am not sure.
1. Run cmd prompt as administrator.
2. takeown /? this command is equivalent to chown (linux) but for windows.
3. cacls -cacls /E /T /G :F
4. simply go in $USER /Users/calvin/.config/configstore/ and make files unhidden.
it worked for me like charm. I have been trying to fix this since many days.
If you get this following error,
Error: EACCES, permission denied '.config/configstore/insight-bower.yml'
You don't have access to this file.
changing ownner .config
sudo chown -R [user name] ~/.config