【问题标题】:phpstorm - scss file watcher issuephpstorm - scss 文件观察器问题
【发布时间】:2013-12-21 12:41:15
【问题描述】:

我正在尝试设置 phpstorm filewatcher 以预编译我的 .scss,但我收到以下错误消息:

"C:/Program Files/Ruby193/Ruby193/bin/compass.bat" --no-cache --update style.scss:style.css
'"ruby.exe"' n'est pas reconnu en tant que commande interne ou externe, 
    un programme executable ou un fichier de commandes.

用英语翻译成类似的东西:

'"ruby.exe"' is not recognised as an internal or external command, 
    executable program or command file.

-我调查了这个问题,但没有解决我的问题:PhpStorm: SCSS File Watcher Settings

-这是我的设置截图。

谢谢。

【问题讨论】:

  • 从 PhpStorm 启动 compass.bat 时,找不到 "ruby.exe"。 1) 尝试重新启动计算机(以便正确更新 PATH 变量) 2) 更改 compass.bat 并指定 ruby​​.exe 的完整路径
  • 对于“程序”路径,我已经尝试过 scss.bat 和 compass.bat 并且收到了相同的错误消息。将其更改为 ruby​​.exe 似乎不起作用(而且我认为这不是一个解决方案,因为我想处理 .scss 文件,而不是启动 ruby​​)。我在程序路径中用 scss.bat 更改了设置的图像。
  • 对于“环境变量”,将其改为“.../bin/ruby.exe”而不是“.../bin/”并没有解决问题。关于您正在谈论的“PATH 变量”,您在谈论哪个路径变量?谢谢。
  • 什么“PATH 变量”? -- 标准一:打开控制台(cmd.exe)输入PATH回车。或通过 GUI -- My Computer | Right Click | Properties 或通过Control Panel | System 相同。然后Advanced System Settings | Environment variables button
  • By "specify FULL PATH to ruby​​.exe" 我的意思是不更改文件观察器中的路径..而是编辑实际的compass.bat文件并提供ruby.exe的完整路径在那里。

标签: sass phpstorm


【解决方案1】:

一张图片胜过一千个字。以下是您应该如何设置它。

【讨论】:

    【解决方案2】:

    我相信你有两个问题。一个是 Ruby 的设置方式非常不当,您有 Ruby193/Ruby193,这可能会造成问题。另一个问题是您更改了环境变量。把它留空,看看它是否有效,它对我来说很好,所以我想如果有任何问题,它与你的 Ruby 设置有关。

    另一个潜在问题是您的 PATH 可能未正确设置为与 Ruby 匹配,因此请仔细检查您的路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多