2014-01-25 160 views
-1

我有以下bower.json涼亭沒有安裝依賴

{ 
    "name": "name of app", 
    "version": "0.0.0", 
    "homepage": "", 
    "license": "MIT", 
    "directory": "public/bower_components", 
    "ignore": [ 
    "**/.*", 
    "node_modules", 
    "bower_components", 
    ], 
    "dependencies": { 
    "less": "~1.6.1", 
    "bootstrap": "~3.0.3", 
    "angular": "~1.2.8", 
    "angular-animate": "~1.2.8", 
    "angular-route": "~1.2.8" 
    } 
} 

但是當我運行bower install那麼它不公開目錄下創建bower_components,它不會安裝依賴。以下是bower install命令的截圖。

我該如何解決這個問題?

enter image description here

回答

0

A custom install location can be set in a .bowerrc file using the directory property. The .bowerrc file should be a sibling of your project's bower.json.

自定義目錄路徑需要的文檔在.bowerrc文件中設置,而不是bower.json

0

您對此有一個額外的逗號line:

"bower_components", 

刪除逗號,它應該可以工作。