加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – 什么是“咕噜服务”抛出“没有鲍尔组件找到”?

发布时间:2020-12-17 09:01:48 所属栏目:安全 来源:网络整理
导读:我开始在我的Windows 7框中的 angular-fullstack角应用程序。我安装了一堆npm包与-g选项,包括grunt-bower-install。我首先通过运行创建应用程序 yo angular-fullstack appname 在应用程序创建期间没有异常。应用程序创建成功后,我试图运行应用程序使用 gru
我开始在我的Windows 7框中的 angular-fullstack角应用程序。我安装了一堆npm包与-g选项,包括grunt-bower-install。我首先通过运行创建应用程序

yo angular-fullstack appname

在应用程序创建期间没有异常。应用程序创建成功后,我试图运行应用程序使用

grunt serve

期望服务器运行。但“咕噜服务”失败了

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

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.

Fatal error: No Bower components found.

我找到了.bowerrc文件,它指向app / bower_components。不幸的是,bower_components文件是没有找到的地方。我不知道应该是什么文件的内容,自己创建它。是缺少文件导致这个问题或有一个npm包,我没有正确安装?

>我安装bower使用npm以及*

谢谢

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

>安装ruby和指南针(yeoman需要这些)
>验证到Ruby bin文件夹的路径已添加到%PATH%
>安装Git
>重新启动cmd窗口,并在应用程序文件夹中运行“bower install”

之后,grunt服务命令工作完美。注意:也许安装Git和运行bower安装就足够了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读