无法使用可执行罗盘找到宝石罗盘(> = 0.a)

时间:2019-03-13 14:20:06

标签: node.js ruby webstorm bundler compass

我无法让PhpStorm使用相对安装的捆绑程序包。

我正在使用带有以下gemfile的捆绑程序:

source "http://rubygems.org"

gem "susy", "~>2.2.14"
gem "sass", "~>3.4.22"
gem "compass", "~> 1.1.0.alpha.3"
gem "breakpoint", "~>2.5.0"
gem "font-awesome-sass", "~>4.6.2"

在PhpStorm终端上,我正在执行以下命令以将gems安装到相对目录gems/

bundle install --path gems/

捆绑程序将所有文件均安装到目录gems/中,没有任何错误。

Installed relative ruby folder structure

我的观察者任务如下:

screenshot watcher

如果我在scss文件中进行了一些更改,观察者会抛出

cmd.exe /D /C call "F:\Cloud\Zoho WorkDrive (Gedankenfolger® GmbH)\General\Kunden 2019\Uhlmann\TYPO3\Wonder by Uhlmann TYPO3 87\gems\ruby\2.6.0\bin\compass.bat" compile "F:\Cloud\Zoho WorkDrive (Gedankenfolger® GmbH)\General\Kunden 2019\Uhlmann\TYPO3\Wonder by Uhlmann TYPO3 87\fileadmin\templates"
C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem compass (>= 0.a) with executable compass (Gem::GemNotFoundException)
from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
from F:/Cloud/Zoho WorkDrive (Gedankenfolger� GmbH)/General/Kunden 2019/Uhlmann/TYPO3/Wonder by Uhlmann TYPO3 87/gems/ruby/2.6.0/bin/compass:23:in `<main>'

Process finished with exit code 1

如何使它正常工作?

系统环境:

  • Windows 10 Pro / 1809版/内部版本17763.316
  • PhpStorm 2018.3.4
  • 红宝石2.6.1p33(2019-01-30修订版66950)[x64-mingw32]
  • npm 6.4.1
  • 捆绑器2.0.1

1 个答案:

答案 0 :(得分:0)

我不会安装这样的--path选项。我只执行bundle install

(您可能也想先删除.bundle/config文件)。