Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bower@1.7.5 install fails #350

Closed
mllrjb opened this issue Jan 26, 2016 · 6 comments
Closed

bower@1.7.5 install fails #350

mllrjb opened this issue Jan 26, 2016 · 6 comments

Comments

@mllrjb
Copy link

mllrjb commented Jan 26, 2016

[INFO] Running 'bower install' in /home/jenkins/workspace/my-app
[ERROR] module.js:339
[ERROR]     throw err;
[ERROR]     ^
[ERROR] 
[ERROR] Error: Cannot find module '/home/jenkins/workspace/my-app/node_modules/bower/bin/bower'
[ERROR]     at Function.Module._resolveFilename (module.js:337:15)
[ERROR]     at Function.Module._load (module.js:287:25)
[ERROR]     at Function.Module.runMain (module.js:467:10)
[ERROR]     at startup (node.js:136:18)
[ERROR]     at node.js:963:3

It looks like bower changed their structure to .lib/bin from ./bin, so it breaks builds.

Any reason not to use node_modules/.bin/bower instead of node_modules/bower/bin?

@mllrjb
Copy link
Author

mllrjb commented Jan 26, 2016

I think something odd is happening with Bower, because the previous version was 1.7.2, so I'm not sure why they jumped. Either way, would it make sense to link via node_modules/.bin anyways?

@bornholtz
Copy link

Anyone have a quick fix for this?

@mllrjb
Copy link
Author

mllrjb commented Jan 27, 2016

@bornholtz - yes, using bower@1.7.2 fixes for me.

@Botffy
Copy link

Botffy commented Jan 27, 2016

For the record, the bower issue is bower/bower#2157. It's all fixed now, which is awesome.

@eirslett
Copy link
Owner

Ok, I'll close this then. If anybody wants to fix it thoroughly, by letting all the mojos (grunt, gulp, bower etc) use the correct bin path, feel free to send a PR.

@mllrjb
Copy link
Author

mllrjb commented Jan 27, 2016

I'll carve out some time to do that, unless somebody beats me to it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants