Netbeans 8.2中的Sass输出错误 [英] Sass output error in Netbeans 8.2

查看:70
本文介绍了Netbeans 8.2中的Sass输出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Chocolatey安装了Sass,并在Netbeans控制台中收到此错误:

I installed Sass via Chocolatey and get this error in the Netbeans console:

C:\ProgramData\chocolatey\lib\sass\tools \sass.bat-缓存位置 C:\Users\oxk4r\AppData\Local\NetBeans\Cache\8.2\sass-compiler --debug-info --style紧凑 C:\xampp\htdocs\SASS_01\scss\style.scss C:\xampp\htdocs\SASS_01\css\style.css找不到名为缓存位置的选项。

"C:\ProgramData\chocolatey\lib\sass\tools\sass.bat" "--cache-location" "C:\Users\oxk4r\AppData\Local\NetBeans\Cache\8.2\sass-compiler" "--debug-info" "--style" "compact" "C:\xampp\htdocs\SASS_01\scss\style.scss" "C:\xampp\htdocs\SASS_01\css\style.css" Could not find an option named "cache-location".

根本不会生成* .css文件。

No *.css file is generated at all.

推荐答案

在您的Sass安装目录的sass.bat文件中,命令如下:

In your Sass install directory, in file sass.bat, after the command:

set arguments=%*

添加以下内容(用Windows用户名替换用户名)...

add the following (replace username with your windows username)...

set arguments=%arguments:--cache-location =%
set arguments=%arguments:C:\Users\username\AppData\Local\NetBeans\Cache\8.2\sass-compiler =%
set arguments=%arguments:--debug-info =%

这会删除所有不再接受的参数。

This strips out all of the arguments that are no longer accepted.

这篇关于Netbeans 8.2中的Sass输出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆