找不到凉亭包

时间:2015-05-21 00:27:31

标签: angularjs yeoman bower wiredep

我在雪豹OSX 6.8上安装了Yeoman。当我跑“咕噜咕噜”的时候我收到以下错误(它无法找到我的凉亭套餐):

Dream-2:app1 goldenheart$ grunt serve
Running "serve" task

Running "clean:server" (clean) task
>> 1 path cleaned.

Running "wiredep:app" (wiredep) task
Warning: Error: Cannot find where you keep your Bower packages. Use --force to continue.

Aborted due to warnings.


Execution Time (2015-05-21 00:17:32 UTC)
loading tasks   2.3s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 92%
wiredep:app    187ms  ▇▇▇▇▇▇▇ 8%
Total 2.5s

我在其他stackoverflow帖子上尝试了很多建议,例如在本地安装bower和grunt,但我仍然遇到上述错误。

1 个答案:

答案 0 :(得分:2)

您可以在项目的根目录中添加.bowerrc文件。在该文件中,您可以定义bower需要安装其包的位置。将其添加到该文件中:

{
  "directory": "... your location ..."
}