BOWER安装eAccess错误
我在尝试从Bower.json(Bower安装)安装依赖项时遇到此错误,我不知道它是什么,也不知道如何修复它……任何帮助都将被删除。
✘ deniz946@UbuntuOS ~/Desktop/meanapp/client resourcejs bower install
/home/deniz946/.nvm/versions/node/v5.0.0/lib/node_modules/bower/lib/node_modules/configstore/index.js:54
throw err;
^
Error: EACCES: permission denied, open '/home/deniz946/.config/configstore/bower-github.json'
You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:431:33)
at Object.create.all.get (/home/deniz946/.nvm/versions/node/v5.0.0/lib/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
at Object.Configstore (/home/deniz946/.nvm/versions/node/v5.0.0/lib/node_modules/bower/lib/node_modules/configstore/index.js:28:44)
at readCachedConfig (/home/deniz946/.nvm/versions/node/v5.0.0/lib/node_modules/bower/lib/config.js:19:23)
at defaultConfig (/home/deniz946/.nvm/versions/node/v5.0.0/lib/node_modules/bower/lib/config.js:11:12)
at Object.<anonymous> (/home/deniz946/.nvm/versions/node/v5.0.0/lib/node_modules/bower/lib/index.js:16:32)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
解决方案
此命令应该有效。它提供了配置BOWER权限。
sudo Chown-R$USER:$group~/.npm
SUDO CHOWN-R$USER:$group~/.config
并通过
授予对文件夹的权限sudo chmod-R 777文件夹名称
。
相关文章