1

(nodejs) ゴースト ブログ プラットフォームのレポhttps://github.com/TryGhost/Ghostを複製し、セットアップの手順に従いました。実行するとgrunt、このエラーが発生しました

Running "sass:compress" (sass) task
Syntax error: File to import not found or unreadable: bourbon/_bourbon.
              Load paths:
                /Users/m/Sites/Ghost
                /Users/m/Sites/Ghost/core/client/assets/sass
        on line 22 of ./core/client/assets/sass/modules/mixins.scss
        from line 10 of ./core/client/assets/sass/screen.scss
  Use --trace for backtrace.
Warning:  Use --force to continue.

Aborted due to warnings.

I found a blog post http://www.bearfruit.org/2013/10/19/quick-tip-for-getting-the-ghost-blogging-platform-running-locally/ where someone had a similar error that was solved by running

 gem install sass bourbon

However, that hasn't fixed the problem for me. While I can run grunt --force, there are problems with the css that I'm guessing would be solved if it could find the files it's looking for.

In mixin.css file referred to in the error message, it has this

// Bourbon - http://bourbon.io/
@import "bourbon/_bourbon";
$rounded: 2px;
$shadow: rgba(0,0,0,0.05) 0 1px 5px;
$default-transition-duration: 0.3s;

However, there's no bourbon folder of any kind in the ghost repo. I'm wondering if it's supposed to import from the installed gem, if so it's not working.

Can you suggest what I might do to fix this problem?

4

1 に答える 1

0

そこにない場合 (何らかの理由で)、バーボンを手動でインストールすることをお勧めします。gem がシステムに正常にインストールされたらcd、sass ディレクトリに移動してbourbon install. それはあなたに必要なものを与えるはずです。

于 2013-11-06T16:30:23.377 に答える