Bower installation stuck on json: "message": "Answer" output,

There are two questions that I came up with mostly using Intellij

  • I don’t understand why the output of the bower installation is a bunch of json messages. When I install bower install in my Webstorm, I see single-line statements and prompts if I need to specify a version.

    { "level": "action", "id": "resolve", "message": "git://github.com/chieffancypants/angular-hotkeys.git#~1.7.0", "data": { "endpoint": { "name": "angular-hotkeys", "source": "chieffancypants/angular-hotkeys", "target": "~1.7.0" }, { "type": "input", "message": "Answer", "name": "prompt", "level": "prompt" } 
  • My bower installation just gets stuck in the json name mentioned above, as it is looking for a hint. I don’t know how to write anything, and in fact he does not ask me about which version I need or something like that.

How can I get the standard output format for installing bower?

My bower.json looks like this:

 { "name": "myApp", "dependencies": { "angular": "~1.5.5", "angular-route": "~1.5.5", "jquery": "~2.1.4", "angular-cookies": "~1.5.5", "some-other-application": "~0.0.2" } } 
+6
source share
2 answers

Figured it out.

I had to remove "json": "bower.json" from the .bowerrc file

+15
source

When you specify dependencies for your application through Bower, some of the packages may rely on different versions of the same library. You will need to decide which version of the libraries you want to use in your application.

If you configure Bower using "json": "bower.json" inside the .bowerrc file, Bower expects these permissions to be inside the bower.json file. This means that you must have the “permissions” property inside the bower.json file.

So, if you do not want to modify the .bowerrc file:

 { "name": "myApp", "dependencies": { "angular": "~1.5.5", "angular-route": "~1.5.5", "jquery": "~2.1.4", "angular-cookies": "~1.5.5", "some-other-application": "~0.0.2" }, "resolutions": { "angular": "1.5.5", "jquery": "2.1.4" } } 
0
source

All Articles