【发布时间】:2015-09-05 22:19:08
【问题描述】:
我在 Yeoman 网页上关注 codelab,到目前为止,我已经成功地关注了(我的开发环境运行时遇到了一些重大问题,但现在它没有返回任何错误)。
所以我创建了我的项目文件夹并运行了yo,选择了 AngularJS 并运行了这个东西。很快我就收到了? Overwrite package.json? 的提示,我回复了y 并收到了以下警告:
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
在那之后,它完成了它正在做的事情,所以我再次运行 bower install 以确保(因为 package.json 的事情),然后运行 grunt serve。现在 grunt 说完成,没有错误,但我的页面只加载 main.css。我有一种强烈的感觉 bootstrap.css 文件丢失了。 This 就是它的样子,当 codelab 说明说它应该看起来像 this 时。
如果您需要有关生成内容的更多信息,请查看GitHub repository link。
欢迎任何关于我做错了什么的见解(如果有的话)。
【问题讨论】:
标签: angularjs twitter-bootstrap bower yeoman yeoman-generator-angular