2015-01-16 78 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