Bower error: ENOTFOUND bower-bootstrap-accordion package not found

I am trying to install this plugin that contains Angular UI Bootstrap, I do not need a complete library, only that plug-in, and I get an error message:

The command I entered into the terminal:

bower install bower-bootstrap-accordion --save

and then the error:

Bower error: ENOTFOUND Package bower-bootstrap-accordion not found

here bower.json

 { "name": "bower-bootstrap-accordion", "license": "MIT", "version": "0.11.0", "author": { "name": "https://github.com/angular-ui/bootstrap/graphs/contributors" }, "dependencies": { "bower-bootstrap-collapse": "0.11.0" }, "main": "ui-accordion-tpls.js" } 

Link to the plugin

Do I need to install a complete library?

+5
source share
1 answer

bower-bootstrap-accordion is not registered in the Bower registry, so the Bower client cannot find it by name.
When defining a dependency, you can use the Git repository URL. This saves the Bower customer the need to search for the package URL in the Bower registry.

 "dependencies": { "bower-bootstrap-accordion" : "git://github.com/ui-bootstrap-bower-test/bower-bootstrap-accordion.git" } 

In addition, this package has dependencies on additional packages, such as bower-bootstrap-collapse, bower-bootstrap-transition, which are also not registered in the Bower registry. You must include it in your dependencies in the same way.
I think that all these packages belong to one author - https://github.com/ui-bootstrap-bower-test/

+8
source

Source: https://habr.com/ru/post/1209844/


All Articles