Bower 错误:未找到 ENOTFOUND 包 bower-bootstrap-accordion [英] Bower error: ENOTFOUND Package bower-bootstrap-accordion not found

查看:46
本文介绍了Bower 错误:未找到 ENOTFOUND 包 bower-bootstrap-accordion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装这个插件,它是 Angular UI Bootstrap,我不需要完整的库,只需要那个插件,我收到错误:

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:

我在终端输入的命令:

bower install bower-bootstrap-accordion --save

然后是错误:

Bower 错误:未找到 ENOTFOUND 包 bower-bootstrap-accordion

这里是 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"
}

插件链接

我必须安装完整的库吗?

do I have to install the full library ?

推荐答案

bower-bootstrap-accordion 不是 已在 Bower 注册表中注册,因此 Bower 客户端无法通过名称找到它.
您可以在定义依赖项时使用 Git 存储库 URL.这将使 Bower 客户端无需在 Bower 注册表中搜索包 URL.

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"
}

此外,此包还依赖于其他包,例如 bower-bootstrap-collapse、bower-bootstrap-transition,这些包也未在 Bower 注册表中注册.您必须以相同的方式将它包含在您的依赖项中.
我认为所有这些包都来自同一作者 - https://github.com/ui-bootstrap-凉亭测试/

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/

这篇关于Bower 错误:未找到 ENOTFOUND 包 bower-bootstrap-accordion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆