【问题标题】:Sass can't compile using webstormSass 无法使用 webstorm 编译
【发布时间】:2013-04-03 12:12:15
【问题描述】:

当我想在 Webstorm IDE 中使用 Sass 时,它似乎使用的是 Ruby 1.8(操作系统默认)而不是我的 RVM Ruby 版本 (1.9.x)。

现在我可以在 Watcher-Configuration 中设置 Sass 的路径了:

PATH=$PATH:$HOME/.rvm/bin

但是接下来我遇到的是找不到其他依赖项:

env: ruby_noexec_wrapper: No such file or directory

如何配置 WebStorm 或我的 Mac,使其完全忽略内置 Ruby 并始终使用 RVM(不仅仅是在 Terminal.app 中)

【问题讨论】:

  • 从终端运行 WebStorm:open -a /Applications/WebStorm.app/ 或使文件监视任务环境与终端中的 not so by default 相同。另请参阅related answer

标签: javascript html css sass webstorm


【解决方案1】:

不要提供带有watch 参数的compass 命令,而是提供带有–login -c "compass compile" 参数的bash 命令。

更多信息在这里:How to use compass in phpstorm?

【讨论】:

    【解决方案2】:

    这是对我有用的环境变量:

    Name: PATH
    
    Value: /Users/peteshau/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/peteshau/.rvm/gems/ruby-1.9.3-p327/bin
    

    我需要这两个值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-25
      • 2018-07-06
      相关资源
      最近更新 更多