前提・実現したいこと
システムに疎く、環境構築もネットの参考記事のままmacのターミナルから設定を行い、Sublimeでパッケージをインストールしたのがおよそ3年前です。
約1年ぶりにscssをコンパイルしようとSublime text3から実行したいのですが、エラーが発生しコンパイルできませんでした。
なんとかしようと、またネットの記事を参考に色々とやってみたのですが、解決できませんでした。
###Sublime text3でコンパイル時に発生している問題・エラーメッセージ
/Library/Ruby/Site/2.3.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'sass' (< 3.5, >= 3.3.0) - did find: [sass-3.7.4] (Gem::MissingSpecVersionError) Checked in 'GEM_PATH=/Users/hogehoge/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information from /Library/Ruby/Site/2.3.0/rubygems/specification.rb:1402:in `block in activate_dependencies' from /Library/Ruby/Site/2.3.0/rubygems/specification.rb:1391:in `each' from /Library/Ruby/Site/2.3.0/rubygems/specification.rb:1391:in `activate_dependencies' from /Library/Ruby/Site/2.3.0/rubygems/specification.rb:1373:in `activate' from /Library/Ruby/Site/2.3.0/rubygems.rb:217:in `rescue in try_activate' from /Library/Ruby/Site/2.3.0/rubygems.rb:210:in `try_activate' from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:161:in `rescue in require' from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:178:in `require' from /Library/Ruby/Gems/2.3.0/gems/compass-1.0.3/lib/compass.rb:14:in `block in <top (required)>' from /Library/Ruby/Gems/2.3.0/gems/compass-1.0.3/lib/compass.rb:13:in `each' from /Library/Ruby/Gems/2.3.0/gems/compass-1.0.3/lib/compass.rb:13:in `<top (required)>' from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:168:in `require' from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require' from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:178:in `require' from /Library/Ruby/Gems/2.3.0/gems/compass-1.0.3/bin/compass:20:in `block in <top (required)>' from /Library/Ruby/Gems/2.3.0/gems/compass-1.0.3/bin/compass:8:in `fallback_load_path' from /Library/Ruby/Gems/2.3.0/gems/compass-1.0.3/bin/compass:19:in `<top (required)>' from /usr/local/bin/compass:22:in `load' from /usr/local/bin/compass:22:in `<main>' [Finished in 0.2s]
各バージョン
$ ruby -v ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18] $ gem -v 3.1.3 $ sass -v Ruby Sass 3.7.4 $ bundler -v Traceback (most recent call last): 2: from /Users/hogehoge/.rbenv/versions/2.6.3/bin/bundler:23:in `<main>' 1: from /Users/hogehoge/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0/rubygems.rb:296:in `activate_bin_path' /Users/hogehoge/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0/rubygems.rb:277:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)
試したこと
・Ruby/gem/sassのバージョンアップ
・rbenvのインストール
・sublime text3にてsassパッケージの削除&再インストール
あなたの回答
tips
プレビュー