我正在使用凉亭
$ bower -v
0.9.2
Run Code Online (Sandbox Code Playgroud)
最新版本的凉亭是1.xx https://github.com/bower/bower/releases
我跑来更新bower到最新版本
npm update -g bower
Run Code Online (Sandbox Code Playgroud)
这没有用
我还有
$ bower -v
0.9.2
Run Code Online (Sandbox Code Playgroud) 编辑:这家伙成功完全相同,无法弄清楚为什么它不适合我.
我刚刚git
使用公钥/私钥(Centos 6.5)安装并设置了权限/ SSH身份验证.我可以使用ie来拉/推没有问题:
git clone git@code.organization.com:projects/boilerplate-template
Run Code Online (Sandbox Code Playgroud)
用户名是git
,代码放置在/home/git/projects
创建的存储库中git --init --shared boilerplate-template
.
如何boilerplate-template
在另一个项目中与Bower一起要求?
我试过没有运气的以下bower.json文件:
{
"name": "my/newproject",
"dependencies": {
"boilerplate-template": "git://code.organization.com:projects/boilerplate-template"
}
}
Run Code Online (Sandbox Code Playgroud)
ECMDERR:无法执行"git ls-remote --tags --heads git://code.organization.com:projects/boilerplate-template,退出代码128无法查找code.organization.com(端口项目)......
可悲的是它失败了,因为:project
不是港口而是路径.我也试过ssh://
而不是git://
:
ENOTFOUND:包ssh://code.organization.com:找不到projects /样板 - 模板.
我已经生成了一个yeoman网站,并附带了bootstrap 3,我该如何安装bootstrap 4.
所有教程都说要运行"bower install bootstrap",但这只是再次安装bootstrap 3.
当我运行时bower install
,我收到以下错误:
使用ETIMEDOUT 请求https://bower.herokuapp.com/packages/jquery失败,在1.8秒内重试
但是当我在Chrome的地址栏中运行相同的网址时,我会收到json.我不知道为什么它在bower install
使用Windows 7命令shell 时失败了.我怀疑它与我的工作场所的代理设置有关.
任何人?
我想在Visual Studio 2013中使用bower.
首先,我通过nuget的软件包管理器控制台安装了bower(而不是bower.js).
然后我想我可以简单地输入
PM> bower init
在PMC内部生成bower.json.
但后来它给了我这个错误.
凉亭:"凉亭"一词未被承认......
PS.PM>
指向的路径C:\MyWebProject\MyWebProject\.bin
.
我在这里失踪了什么?
我正在尝试在VPS上安装https://github.com/catarse/catarse脚本(在我的本地机器上工作正常),当我输入命令时出错bower install
:
bower checkout catarse_admin#master
bower resolved https://github.com/catarse/catarse_admin.git#3151581f33
bower ENOTFOUND Package option not found
Run Code Online (Sandbox Code Playgroud)
bower.json
{
"name": "catarse",
"version": "1.0.0",
"homepage": "https://github.com/catarse/catarse",
"description": "The first open source crowdfunding platform for creative projects in the world!",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"vendor/assets/components",
"test",
"tests"
],
"dependencies": {
"jquery": "~2.1.4",
"backbone": "~1.2.0",
"underscore": "~1.8.3",
"jquery-sticky": "~1.0.1",
"jquery-smooth-scroll": "~1.5.5",
"jquery-typewatch": "~2.2.1",
"store": "~2.3.0",
"jQuery-Mask-Plugin": "~1.11.4",
"jquery-ui": "~1.11.4",
"jquery-ujs": "~1.0.3",
"jquery.fixedmask": "~1.0.0",
"mithril": "~0.2.0",
"catarse_admin": "https://github.com/catarse/catarse_admin.git#master"
}
}
Run Code Online (Sandbox Code Playgroud) 你如何卸载Bower?我的意思是包管理器,而不是包(我已经卸载).
我正在使用Windows 7 64位,我安装了Bower
npm install -g bower
Run Code Online (Sandbox Code Playgroud)
它似乎正确安装.
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/amdefine
C:\Program Files (x86)\Git\local\bower -> C:\Program Files (x86)\Git\local\node_
modules\bower\bin\bower
bower@1.3.3 C:\Program Files (x86)\Git\local\node_modules\bower
...
Run Code Online (Sandbox Code Playgroud)
但是凉亭不起作用:
$bower
sh.exe": bower: command not found
$bower -v
sh.exe": bower: command not found
Run Code Online (Sandbox Code Playgroud)
可能有什么不对?
我该如何解决以下问题?
aaa@aaa $ bower install bower.json
bower bower.json#* cached git://github.com/Kalitte/app-states.git#0.6.9
bower bower.json#* validate 0.6.9 against git://github.com/Kalitte/app-states.git#*
bower webcomponentsjs#~0.5.4 cached git://github.com/Polymer/webcomponentsjs.git#0.5.5
bower webcomponentsjs#~0.5.4 validate 0.5.5 against git://github.com/Polymer/webcomponentsjs.git#~0.5.4
bower ENOTFOUND Package App States=bower.json not found
Run Code Online (Sandbox Code Playgroud)
凉亭ENOTFOUND包App州=未找到bower.json
我正在使用以下命令 - bower install angular-file-saver --save
,它内部依赖于 Bower file-saver.js#~1.20150507.2。此依赖项无法下载,因为此 git url 不提供此依赖项 - https://github.com/Teleborder/FileSaver.js.git#~1.20150507.2。
它显示以下错误 - ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/Teleborder/FileSaver.js.git", exit code of #128 fatal
。单击该链接会出现 404 错误。
我可以使用该命令bower install FileSaver --save
,它下载得很好,但无法解决bower install angular-file-saver
.
bower-install ×10
bower ×9
npm ×3
angularjs ×1
bootstrap-4 ×1
git ×1
javascript ×1
nuget ×1
ssh ×1
uninstall ×1
yeoman ×1