2015-01-16 51 views
3

IM在Windows和当我用角发电机脚手架我的应用程序bower_componentsapp目录中缺少失踪 - 而不是它的根目录约曼角发生器 - bower_components在app文件夹

这是食后脚手架我app目录:

<code>app</code> directory

所以我必须手动把凉亭的部件在app目录...

任何想法为什么会发生这种情况?

P.S在bower.json我:

"appPath": "app" 

但是这个选项是不尊重,当我运行bower install它不添加bower_componentsapp目录。

+0

目录上有文件'bower.json'?尝试运行'bower install',但你应该已经安装了bower,在这里检查[** bower **](https://github.com/bower/bower) –

+0

嗨,我刚刚更新了我的问题 - 即使runnign bower install没有解决问题 – fjckls

回答

4

使工作 - 编辑.bowerrc

{ 
    "directory": "app/bower_components" 
} 

,然后bower install

现在所有依赖项都在app目录中。

0

尝试编辑您的bower.json文件,然后运行bower install

{ 
    "name": "mi-portfolio", 
    "version": "0.0.0", 
    "directory": "bower_components/" 
    "dependencies": 
    { 
     "angular": "1.2.6", 
     "json3": "~3.2.6", 
     "es5-shim": "~2.1.0", 
     "jquery": "~1.10.2", 
     "bootstrap": "~3.0.3", 
     "angular-cookies": "1.2.6", 
     "angular-sanitize": "1.2.6" 
    }, 
    "devDependencies": 
    { 
     "angular-mocks": "1.2.6", 
     "angular-scenario": "1.2.6" 
    } 
} 

看这里bower code

+0

没有工作也没有.. – fjckls