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

懵懂的女人 提交于 2019-12-06 03:06:56

问题


I am trying to install this plug in which is the Angular UI Bootstrap, I do not need the full library, only that plug in, and I am getting the error:

the command I am entering in the terminal:

bower install bower-bootstrap-accordion --save

and then the error:

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

here is the 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 have to install the full library ?


回答1:


bower-bootstrap-accordion is not registered in the Bower registry and therefore the Bower client cannot find it by name.
You can use the Git repository URL when defining the dependency. This will save the Bower client 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 will have to include it in the same way in your dependencies.
I think all those packages are from the same author - https://github.com/ui-bootstrap-bower-test/



来源:https://stackoverflow.com/questions/27639440/bower-error-enotfound-package-bower-bootstrap-accordion-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!