2014-01-25 53 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", 

删除逗号,它应该可以工作。