Compass没有看到Bundler安装的本地gem

时间:2011-09-02 23:13:10

标签: gem bundler compass-sass

在我的Gemfile中,我有:

gem 'stitch', :path => "/Users/myname/stitch-css"

当我运行'bundle install'时,我看到:

Using stitch (0.1.3) from source at /Users/myname/stitch-css

但是当我运行'指南针观察'时,我收到了这个错误:

LoadError on line ["36"] of /Users/myname/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb: no such file to load -- stitch

当然,我可以使用以下方法安装gem:

gem install stitch

...然后gem为Compass加载,但不是从我的本地版本加载 - 我的Gemfile中的路径被忽略

提前感谢您的帮助!

1 个答案:

答案 0 :(得分:3)

尝试改为运行bundle exec compass watch