Install bower ubuntu error


#1

Missing bower packages: Package: bourbon

  • Specified: 4.2.6
  • Installed: (not installed)

Run bower install to install missing dependencies.

An error occurred in the constructor for ember-cli-dependency-checker at /home/chiho/Desktop/ember-project/node_modules/ember-cli-dependency-checker

After running bower install I get the following message

usr/lib/node_modules/bower/lib/node_modules/configstore/index.js:54 throw err; ^

Error: EACCES: permission denied, open '/home/chiho/.config/configstore/bower-github.json’ You don’t have access to this file.

at Object.fs.openSync (fs.js:663:18)
at Object.fs.readFileSync (fs.js:568:33)
at Configstore.get (/usr/lib/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
at new Configstore (/usr/lib/node_modules/bower/lib/node_modules/configstore/index.js:28:45)
at readCachedConfig (/usr/lib/node_modules/bower/lib/config.js:19:23)
at defaultConfig (/usr/lib/node_modules/bower/lib/config.js:11:12)
at Object.<anonymous> (/usr/lib/node_modules/bower/lib/index.js:16:32)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)

#2

fixed it with

sudo chown -R $USER:$GROUP ~/.npm

sudo chown -R $USER:$GROUP ~/.config