找不到凉亭包
Cannot find bower packages
我在雪豹上安装了 Yeoman OSX 6.8。当我 运行 'grunt serve' 时出现以下错误(找不到我的 bower 包):
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
我尝试了其他 Whosebug 帖子上建议的一些操作,例如在本地安装 bower 和 g运行t,但我仍然遇到上述错误。
您可以在项目的根目录中添加一个 .bowerrc 文件。在该文件中,您可以定义 bower 需要安装其包的位置。将其添加到该文件中:
{
"directory": "... your location ..."
}
我在雪豹上安装了 Yeoman OSX 6.8。当我 运行 'grunt serve' 时出现以下错误(找不到我的 bower 包):
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
我尝试了其他 Whosebug 帖子上建议的一些操作,例如在本地安装 bower 和 g运行t,但我仍然遇到上述错误。
您可以在项目的根目录中添加一个 .bowerrc 文件。在该文件中,您可以定义 bower 需要安装其包的位置。将其添加到该文件中:
{
"directory": "... your location ..."
}