自耕农和亭子不加引导的CSS(角发生器) [英] yeoman and bower not adding bootstrap css (angular generator)
问题描述
我完全新的使用自耕农,凉亭和咕噜(刚开始学习角),所以如果你需要任何更多的信息,请让我知道,我会更新的问题。
I'm completely new to using yeoman, bower and grunt (just started learning angular), so if you need any more info please let me know and I'll update the question.
我沿着 codeLAB 的自耕农网页下面,到目前为止我已经设法跟随沿(有几个主要打嗝让我的开发环境去,但现在不返回任何错误)。
I am following along a codelab on the yeoman webpage, and so far I've managed to follow along (with a few major hiccups getting my dev environment going, but now it doesn't return any errors).
所以我做我的项目文件夹,然后跑了哟
,选择角度和运行的东西。很快就会进入过程我得到一个提示?覆盖的package.json
我用Ÿanwsered
,得到了以下警告:
so I made my project folder and ran yo
, selected angular and run the thing. Fairly soon into the process I got a prompt ? Overwrite package.json?
I anwsered with y
and got the following warnings:
npm WARN package.json codelab@0.0.0 No license field.
npm WARN peerDependencies The peer dependency karma@>=0.9 included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency jasmine-core@* included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency karma@>=0.9 included from karma-phantomjs-launcher will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency phantomjs@>=1.9 included from karma-phantomjs-launcher will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency karma@~0.12.0 included from grunt-karma will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN optional dep failed, continuing fsevents@0.3.6
在这之后,它完成了它在做什么,所以我跑了亭子安装
再次只是要确定(因为事情的package.json),然后咕噜服务
。现在咕噜说做的,没有错误,但我的页面只加载的main.css
。我有一个强烈的感觉 bootstrap.css
文件丢失。 <一href=\"http://topdeckandwreck.com/stackOverflow/Screenshot%20from%202015-06-19%2022:06:45.png\">This是什么样子,当codeLAB指示说,它看起来应该像这样一>
after that, it finished what it was doing, so I ran bower install
again just to be sure (because of the package.json thing), and then grunt serve
. Now grunt says done, without errors but my page only loads main.css
. I have a strong feeling the bootstrap.css
file is missing. This is what it looks like, when the codelab instructions say it should look like this.
如果您需要生成哪些进一步的信息,这里有一个 GitHub的库链接。
If you need further info on what was generated, here's a github repository link.
这是我在做什么错任何有识之士(如果有的话)是值得欢迎的。
Any insight on what I'm doing wrong (if anything) is welcome.
推荐答案
做codeLAB因为你得到(警告和所有)我正好与相同的结果同样的问题后。我不得不只是回滚到引导3.3.4解决此问题。
After doing the codelab I had exactly the same problem with the same result as you are getting (warnings and all). I had to just work around the issue by rolling back to bootstrap 3.3.4.
只要编辑bower.json和引导线更改为:
Just edit bower.json and change the bootstrap line to:
"bootstrap": "3.3.4",
然后运行下面的,它应该工作:
Then run the following and it should work:
bower install
grunt serve
这篇关于自耕农和亭子不加引导的CSS(角发生器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!