i can't run bower command user, gives me below error when run bower:
error: eacces, permission denied '/home/***/.config/configstore/insight-bower.json' don't have access file.
at object.fs.opensync (fs.js:432:18) @ object.fs.readfilesync (fs.js:286:15) @ object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/index.js:27:26) @ object.configstore (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/index.js:20:44) @ new insight (/usr/local/lib/node_modules/bower/node_modules/insight/lib/index.js:37:34) @ ensureinsight (/usr/local/lib/node_modules/bower/lib/util/analytics.js:25:19) @ object.setup (/usr/local/lib/node_modules/bower/lib/util/analytics.js:41:9) @ object.<anonymous> (/usr/local/lib/node_modules/bower/bin/bower:72:11) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10)
but when run bower root, works fine.
whats wrong? works fine before, since did below command goes wrong.
sudo bower cache clean --allow-root
the problem owner of file. because owner of file '/home/***/.config/configstore/insight-bower.json' root, can run bower sudo , --allow-root.
so issue solved changing owner myself, below:
sudo chown bobsilon .config/configstore/insight-bower.json
Comments
Post a Comment