Git Product home page Git Product logo

Comments (4)

blackfyre avatar blackfyre commented on August 15, 2024

Same here...
Additional info: OSX 10.10.1 Yosemite, using sudo to run npm from terminal.

> [email protected] postinstall /usr/local/lib/node_modules/bower-browser
> cd lib/client && bower install
Error: EACCES, permission denied '/Users/currentMachineUser/.config/configstore/insight-bower.yml'
You don't have access to this file.
    at Object.fs.openSync (evalmachine.:438:18)
    at Object.fs.readFileSync (evalmachine.:289:15)
    at Object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:33:29)
    at Object.Configstore (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:26:44)
    at new Insight (/usr/local/lib/node_modules/bower/node_modules/insight/lib/index.js:26:34)
    at ensureInsight (/usr/local/lib/node_modules/bower/lib/util/analytics.js:26:19)
    at Object.setup (/usr/local/lib/node_modules/bower/lib/util/analytics.js:43:9)
    at Object. (/usr/local/lib/node_modules/bower/bin/bower:72:11)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower-browser"
npm ERR! node v0.10.33
npm ERR! npm  v2.1.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `cd lib/client && bower install`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'cd lib/client && bower install'.
npm ERR! This is most likely a problem with the bower-browser package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cd lib/client && bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls bower-browser
npm ERR! There is likely additional logging output above.

from bower-browser.

htanjo avatar htanjo commented on August 15, 2024

Thanks for reporting.
You may have a permission issue. It's better to install packages without sudo.

See: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md

Currently bower-browser is designed for user command.
But I'm planning to support broad environment, or notify a message before the error.

from bower-browser.

blackfyre avatar blackfyre commented on August 15, 2024

This is definitely a permission error 😄, tried it our on windows this morning and everything was working fine.

My guess would be that everybody will have this problem who didn't bother to change the npm global directory to a user accessible one on OSX and *nix systems.

They can solve this in a few ways:

  • Set a new global directory for npm
  • change the permissions for the current npm global and bin folders to allow sudo less access

from bower-browser.

htanjo avatar htanjo commented on August 15, 2024

Hi! I've released bower-browser v0.3.0 and this version supports npm install with sudo. 😆

from bower-browser.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.