我正在用Jekyll开发静态网站的新版本,并通过Github页面进行部署:https : //devcampy.com
仓库:https : //github.com/gianarb/devcampy.com
我在本地使用docker运行它,但无法重现该问题:
$ docker run --rm -p 4000:4000 -v "$PWD":/srv/jekyll jekyll/jekyll:stable jekyll serve
这是我推送到存储库时通过电子邮件收到的错误。我不知道为什么它不能正常工作
The page build failed for the `master` branch with the following error:
Your SCSS file `assets/main.scss` has an error on line 6: File to import not found or unreadable: vendor/rfs. Load paths: node_modules /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass. For more information, see https://help.github.com/en/articles/page-build-failed-invalid-sass-or-scss.
有人有反馈吗?非常感谢
您当前的引导程序代码不完整。 /node_modules/bootstrap/scss/vendor/_rfs.scss丢失,因为.gitignore规则阻止对任何供应商文件夹进行版本控制。
在您的.gitignore中,将vendor
line 替换为vendor/bundle
运行npm install bootstrap
以覆盖当前版本
您无法想象我花了多少时间寻找和思考这个问题。谢谢