简体   繁体   中英

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. I'm running through a yo webapp generator which does scaffolds out for me.

In my bower.json file, it give me two dependencies:

{
    "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. I have to run it 2x to get both dependencies. 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 .

In my webapp structure, I do not have a bower_components directory. Shouldn't the bower install command be giving me that?

在此处输入图片说明 Any ideas why my bower install and grunt serve commands don't seem to be working?

I'm on Windows 7.

The answer is right there in the command shell, the system can not find git. The best bet is to install either MSysGit or Github for Windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM