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 install crash #2278

Closed
guangyya opened this issue May 3, 2016 · 4 comments
Closed

bower install crash #2278

guangyya opened this issue May 3, 2016 · 4 comments

Comments

@guangyya
Copy link

guangyya commented May 3, 2016

bower --version @1.7.9

while doing $bower install , I got crash and stop at

{
  "type": "input",
  "message": "Answer",
  "name": "prompt",
  "level": "prompt"

then I change bower version to 1.4.1, everything fine.

@ptitgraig
Copy link

Hey. Could you give us a more detailed error log ?
Thanks

@guangyya
Copy link
Author

guangyya commented May 3, 2016

above

{
  "type": "input",
  "message": "Answer",
  "name": "prompt",
  "level": "prompt"

is a lot of bower install dependence information.

This is my bower.json file

{
  "name": "angular-bootstrap-rails",
  "description": "A starter project for AngularJS with rails",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "angular": "~1.2.21",
    "bootstrap": "*",
    "angular-route": "~1.2.21",
    "angular-resource": "~1.2.21",
    "jquery": "*",
    "angular-animate": "~1.2.16",
    "angular-bootstrap": "~0.11.0",
    "angular-http-auth": "*",
    "angular-strap": "~2.0.4",
    "angular-motion": "~0.3.3",
    "angular-cookies": "~1.2.21",
    "angular-sanitize": "~1.2.21",
    "angular-xeditable": "~0.1.8",
    "angles": "*",
    "esl": "~1.8.4",
    "angular-toastr": "~0.4.0",
    "ng-ckeditor": "~0.2.1",
    "ng-tags-input": "~2.3.0",
    "angular-ui-grid": "~3.0.0-rc.21",
    "ng-ckeditor": "~0.2.1"
  }
}

since I have already fixed this problem by change bower version, sorry I am not able to reproduce that on my Mac.

@dudeofawesome
Copy link

dudeofawesome commented May 4, 2016

I'm having a similar error whenever I try to init or install, although it does not seem to crash for me.

image

It looks like it might be an issue related to inquirer.

I'm using ZSH and iTerm2 on OS X 10.11.3 with Bower version 1.7.9

@crayygy
Copy link

crayygy commented May 16, 2016

Hi there:
I've already find the reason why bower install crash.

It's all caused by a wrong .bowerrc file.

The way to fix it is:

  1. delete the "json": "bower.json" line
  2. remember to delete the comma of the upper line.

at last, a .bowerrc file like this is fine.

{
  "directory": "public/bower_components"
}

That's all. 😆

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

No branches or pull requests

4 participants