简体   繁体   English

Bower安装似乎无法正常运行(Windows 7)-无法获取bower_components目录,咕unt的服务无法找到Bower软件包

[英]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 installgrunt 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.

相关问题 Gulp全局安装在Windows 7上不起作用 - Gulp global install doesn't work on Windows 7 Windows 7上的Hudson 1.398没有“作为Windows服务安装”选项 - Hudson 1.398 on Windows 7 doesn't have Install as Windows Service option 出现错误,错误:npm安装后找不到模块“ express” - Getting error, Error: Cannot find module ‘express’ after npm install 无法为Windows安装github - Cannot install github for windows 在Windows 8上运行的Windows 7桌面应用程序中的Directory.CreateDirectory()不会创建新目录 - Directory.CreateDirectory() in Windows 7 desktop application running at Windows 8 doesn't create new directory 在Windows XP上无法获取物理磁盘序列号 - Getting Physical Disks serial number doesn't work on windows XP Windows 7 64位上的MercurialEclipse:不安装“Mercurial的Windows二进制文件” - MercurialEclipse on Windows 7 64bit: doesn't install “Windows Binaries for Mercurial” 安装在 Windows 7 上不起作用 - Install not working on Windows 7 Git似乎没有添加新文件 - Git doesn't seem to be adding new files 我正在尝试在Windows 7系统上安装MySQL连接器,但未在ODBC添加窗口中显示 - I'm trying to install the MySQL connector on a windows 7 systembut it doesn't show up in the ODBC add window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM