Sass编译器无法在升华文本3中工作

Sass编译器无法在升华文本3中工作,sass,sublimetext3,Sass,Sublimetext3,我的Windows7机器上安装了Sass,我正在尝试编译一些SCS 每次,我都会得到以下输出: 'sass' is not recognized as an internal or external command, operable program or batch file. [Finished in 0.2s with exit code 1] [cmd: ['sass', '--update', 'W:\\exocet\\web\\build\\mirror\\css\\style.sc

我的Windows7机器上安装了Sass,我正在尝试编译一些SCS

每次,我都会得到以下输出:

'sass' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.2s with exit code 1]
[cmd: ['sass', '--update', 'W:\\exocet\\web\\build\\mirror\\css\\style.scss:W:\\exocet\\web\\build\\mirror\\css/style.css', '--stop-on-error', '--no-cache']]
[dir: W:\exocet\web\build\mirror\css]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x86;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x64;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\]

有什么问题吗?

谢天谢地,我找到了答案

如果您收到的“sass”不被视为内部或 “外部命令”错误。。。如果安装了Sass,则必须添加 将其添加到系统的PATH变量中

在字符串的末尾,添加;C:\Ruby192\bin

可以找到更改路径变量的说明

Windows Vista和Windows 7用户:

  • 在桌面上,右键单击“我的电脑”,然后单击“属性”
  • 单击左列中的“高级系统设置”链接
  • 在“系统属性”窗口中,单击“环境变量”按钮
  • Windows 2000和Windows XP用户:

    该路径现在由Windows 2000和Windows XP管理,而不是由autoexec.bat管理 或autoexec.nt文件,与早期版本的Windows相同。 要更改系统环境变量,请执行以下步骤

  • 在桌面上,右键单击“我的电脑”,然后单击“属性”
  • 在“系统属性”窗口中,单击“高级”选项卡
  • 在“高级”部分中,单击“环境变量”按钮

  • 最后,在“环境变量”窗口(如下所示)中,高亮显示“系统变量”部分中的路径变量,然后单击“编辑”按钮。使用您希望计算机访问的路径添加或修改路径行。每个不同的目录用分号分隔,如下所示

    C:\程序文件;C:\Winnt;C:\Winnt\System32


    请注意,示例中第一个链接(;C:\Ruby192\bin)中给出的数字“192”对于每个版本的Ruby都会有所不同。

    我们必须在配置环境路径之前安装Ruby吗?我不太确定,我安装Ruby已经有一段时间了,虽然为了安全起见,我建议您这样做,但您是否可以进行屏幕共享会话,并帮助我将SaSS编译为CSS?如果未安装Ruby,则无法配置路径,因为Ruby的文件夹名称将不存在。