我在尝试唠叨服务时遇到了这个问题。任何人都可以帮我解决这个问题

时间:2014-05-07 07:25:28

标签: gruntjs yeoman

roys-mbp:gucci Filthy$ grunt serve
Running "serve" task

Running "clean:server" (clean) task

Running "concurrent:server" (concurrent) task

Warning: Running "sass:server" (sass) task
Warning: /Users/Filthy/Documents/gucci/app/styles/main.scss:4: error: file to import not found or unreadable: '../../bower_components/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap.scss'
 Use --force to continue.

Aborted due to warnings.


Execution Time (2014-05-07 07:06:54 UTC)
loading tasks  3ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 27%
sass:server    7ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 64%
Total 11ms Use --force to continue.

Aborted due to warnings.

5 个答案:

答案 0 :(得分:2)

尝试运行'bower install'来安装依赖项。

答案 1 :(得分:1)

我遇到了同样的问题,bootstrap.scss的路径错了。 你使用过webapp生成器吗? 更改main.scss中的第4行 ” ../../bower_components/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap.scss' 至 ” ../bower_components/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap.scss' 或者无论bootstrap.scss的路径是什么。

答案 2 :(得分:1)

我遇到了同样的问题。我在考虑安装npmbower个依赖项,但安装没有结束。

修复它:

npm install bower install

这解决了我的问题。

答案 3 :(得分:0)

您的sass文件中存在问题,请使用此来源

@import“bootstrap-sass-official / assets / stylesheets / _bootstrap.scss”;

答案 4 :(得分:0)

打开cmd promt 转到项目文件夹 类型 - >凉亭安装并进入 它将安装凉亭组件 并显示需要安装哪个版本的选项 然后问题解决了

它的工作正常我试试.....

相关问题