[英]Bower install doesn't seem to be working (Windows 7) - not getting bower_components directory, grunt serve cannot find bower packages
I'm having problems getting bower install
working. 我在
bower install
遇到问题。 I'm running through a yo webapp
generator which does scaffolds out for me. 我正在运行一个
yo webapp
生成器,该生成器会为我做支架。
In my bower.json
file, it give me two dependencies: 在我的
bower.json
文件中,它给了我两个依赖性:
{
"name": "webapp-test",
"private": true,
"dependencies": {
"jquery": "~1.11.1",
"modernizr": "~2.8.2"
}
}
When I run a bower install
after the generator, I would think it would be pulling down all dependencies with that command. 当我在生成器之后运行
bower install
,我认为它将使用该命令拉低所有依赖关系。 I have to run it 2x to get both dependencies. 我必须运行2倍才能获得两个依赖项。 This seems wrong to me, why is not grabbing all dependencies with the first command?
这对我来说似乎是错误的,为什么不使用第一个命令来获取所有依赖项?
I then try to run grunt serve
but that is failing, stating cannot find where you keep your bower packages . 然后,我尝试运行
grunt serve
但失败了,并指出找不到保管箱 。
In my webapp structure, I do not have a bower_components
directory. 在我的webapp结构中,我没有
bower_components
目录。 Shouldn't the bower install
command be giving me that? bower install
命令不应该给我那个吗?
Any ideas why my
bower install
and grunt serve
commands don't seem to be working? 为什么我的
bower install
和grunt serve
命令似乎无效?
I'm on Windows 7. 我在Windows 7上。
The answer is right there in the command shell, the system can not find git. 答案就在命令外壳中,系统找不到git。 The best bet is to install either MSysGit or Github for Windows.
最好的选择是为Windows安装MSysGit或Github。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.