Sass phpstorm-scss文件监视程序问题
我正在尝试设置phpstorm filewatcher以预编译我的.scs,我收到以下错误消息:Sass phpstorm-scss文件监视程序问题,sass,phpstorm,Sass,Phpstorm,我正在尝试设置phpstorm filewatcher以预编译我的.scs,我收到以下错误消息: "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 fi
"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.
-我研究了这个问题,但没有解决我的问题:
-这是我设置的屏幕截图。
我想你有两个问题。一个是Ruby的设置非常不恰当,您有
Ruby193/Ruby193
,这可能会带来一个问题。另一个问题是您已经更改了环境变量。保持它为空,看看它是否工作,它对我来说很好,所以我想如果有任何问题,那就是你的Ruby设置
另一个潜在的问题是,您的路径可能设置不正确,无法与Ruby匹配,因此请仔细检查您的路径。一张图片抵得上千言万语。以下是您应该如何设置它 从PhpStorm启动
compass.bat
时,找不到“ruby.exe”。1) 尝试重新启动计算机(以便正确更新路径变量)2)更改compass.bat
并指定ruby.exe的完整路径对于“程序”路径,我已经尝试了scss.bat和compass.bat,并且收到了相同的错误消息。将其更改为ruby.exe似乎不起作用(我认为这不是一个解决方案,因为我想处理.scss文件,而不是启动ruby)。我在程序路径中用scss.bat更改了设置的映像。对于“环境变量”,将其更改为“../bin/ruby.exe”而不是“../bin/”并不能解决问题。关于你说的“路径变量”,你说的是哪个路径变量?厚度什么“路径变量”?——标准一:打开控制台(cmd.exe),键入PATH
并输入。或者通过GUI--我的电脑|右键单击|属性
,或者通过控制面板|系统
执行相同操作。然后,Advanced System Settings | Environment variables按钮
通过“指定ruby.exe的完整路径”我的意思是不更改文件查看器中的路径。。但是编辑实际的compass.bat
文件并提供ruby.exe的完整路径。