ember-cli-cookie
ember-cli-cookie copied to clipboard
postinstall fails when `bower` isn't in PATH
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
Hmm...Ok....Let me have a look.
Run: sudo npm install bower --save Then install ember-cli-cookie
My team only installs project dependencies locally (i.e. in ./node_modules) because we're not using something like Docker on our production servers.
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.