ember-cli-cookie icon indicating copy to clipboard operation
ember-cli-cookie copied to clipboard

postinstall fails when `bower` isn't in PATH

Open nikolas opened this issue 11 years ago • 4 comments

ember-cli-cookie seems to be making an assumption about where bower is installed, but I can't find where to fix this. I'm getting an error if I'm using a project-specific bower instead, e.g. ./node_modules/.bin/bower.

Binary is fine; exiting
npm ERR! Linux 3.16.0-24-generic
npm ERR! argv "node" "/home/nnyby/node_modules/.bin/npm" "install"
npm ERR! node v0.10.33
npm ERR! npm  v2.1.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `bower install`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the ember-cli-cookie package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls ember-cli-cookie
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/nnyby/src/wacep/media/WeatherRoulette/npm-debug.log

nikolas avatar Nov 20 '14 21:11 nikolas

Hmm...Ok....Let me have a look.

achambers avatar Nov 21 '14 08:11 achambers

Run: sudo npm install bower --save Then install ember-cli-cookie

calvinbrewer avatar Aug 17 '15 21:08 calvinbrewer

My team only installs project dependencies locally (i.e. in ./node_modules) because we're not using something like Docker on our production servers.

nikolas avatar Aug 17 '15 22:08 nikolas

I have the same problem

> [email protected] postinstall /var/deploy/wtstage/web_head/releases/20160722173359/v2/node_modules/ember-cli-cookie
> bower install --allow-root
sh: 1: bower: not found
Failed at the [email protected] postinstall script.

jgadbois avatar Jul 22 '16 17:07 jgadbois