是什么原因造成“咕噜服务'扔'没有找到鲍尔组件的? [英] What is causing 'grunt serve' to throw 'No Bower components found'?

查看:202
本文介绍了是什么原因造成“咕噜服务'扔'没有找到鲍尔组件的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始接触角fullstack 角应用在我的Windows 7盒。我装了一堆NPM包与-g选项,包括咕噜 - 凉亭安装。我创建了应用程序第一次运行

I am starting out angular app with angular-fullstack in my Windows 7 box. I installed bunch of npm packages with -g options, including grunt-bower-install. I created the application first by running

哟角fullstack应用程序的名字

yo angular-fullstack appname

有应用程序创建过程中也不例外。应用程序创建成功后,我尝试使用运行应用程序

There were no exception during the application creation. After application was created successfully I tried to run the app using

咕噜服务

期待服务器来运行。但是,咕噜发球'失败,

expecting the server to run. But the 'grunt serve' failed with

运行亭子安装:应用程序(亭子安装)任务
  找不到在哪里你把你的包鲍尔

Running "bower-install:app" (bower-install) task Cannot find where you keep your Bower packages.

我们试图寻找一个 .bowerrc 文件,也没有找到一个自定义
  定义的目录属性。然后,我们尝试了 bower_components ,但
  这看起来也不存在。作为最后的手段,我们试图
  在pre-1.0 组件目录,但也找不到。

We tried looking for a .bowerrc file, but couldn't find a custom directory property defined. We then tried bower_components, but it looks like that doesn't exist either. As a last resort, we tried the pre-1.0 components directory, but that also couldn't be found.

不幸的是,我们不能继续不知道那里的鲍尔
  已安装软件包。

Unfortunately, we can't proceed without knowing where the Bower packages you have installed are.

致命错误:没有找到鲍尔组件

我没有找到.bowerrc文件,它指向的应用程序/ bower_components。不幸的是,bower_components文件没有被发现的地方。我不知道应该是什么文件来创建它自己的内容。它是丢失的文件造成这个问题还是有一个NPM包,我没有正确安装?

I did find .bowerrc file and it was pointing to app/bower_components. Unfortunately, bower_components file was no where to be found. I am not sure what should be the content of the file to create it myself. Is it the missing file causing this problem or is there a npm package, I did not install correctly?


  • 我使用NPM以及安装亭子*

感谢

推荐答案

我有同样的问题,这里就是我的工作情况:

I had the same issue, here's what worked in my case:


  1. 安装红宝石和指南针(自耕农需要这些)

  2. 验证路径Ruby的bin文件夹添加到%PATH%

  3. 安装的Git

  4. 重新启动cmd窗口就跑亭子安装,在app文件夹

之后,咕噜服务命令完美。
注:也许安装Git和运行亭子安装在你的情况就足够了。

After that, grunt serve command worked perfectly. Note: maybe installing Git and running bower install would suffice in your case.

这篇关于是什么原因造成“咕噜服务'扔'没有找到鲍尔组件的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆