【发布时间】: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的完整路径在那里。