Netbeans-安装SASS [英] Netbeans - installing SASS

查看:139
本文介绍了Netbeans-安装SASS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾尝试在netbeans上安装SASS.我遵循了以下教程:

I have had a few attempts at installing SASS on netbeans. I have followed the following tutorial:

http://kgagliardo.com/blog/netbeans-sass-windows-7

在创建并尝试保存SASS文件时,出现以下错误,并且未创建CSS文件.

I get the below error when creating and trying to save the SASS file and no CSS file is created.

" C:\ Ruby193 \ bin \ sass.bat"-缓存位置 "C:\ Users \ Leanne \ AppData \ Local \ NetBeans \ Cache \ 7.4 \ sass编译器" "C:\ Users \ Leanne \ Documents \ work \ freelance \ sites \ fws_templates \ gamer \ scss \ store.scss" "C:\ Users \ Leanne \ Documents \ work \ freelance \ sites \ fws_templates \ gamer \ css \ store.css" 无法将"ruby​​.exe""识别为内部或外部命令, 可操作的程序或批处理文件.完成."

""C:\Ruby193\bin\sass.bat" "--cache-location" "C:\Users\Leanne\AppData\Local\NetBeans\Cache\7.4\sass-compiler" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\css\store.css" '"ruby.exe"' is not recognized as an internal or external command, operable program or batch file. Done."

整个上午我都被困住了,请帮忙...

I've been stuck on this all morning, please help...

UPDATE 我尝试按照下面提供的说明进行操作,尽管我确实收到了略有不同的错误消息,但它仍然无法正常工作:

UPDATE I've tried to follow the instructions provided below and it still does not work, although I did get a slightly different error message:

"C:\ Ruby193 \ bin \ sass.bat"-缓存位置" "C:\ Users \ Leanne \ AppData \ Local \ NetBeans \ Cache \ 7.4 \ sass编译器" "C:\ Users \ Leanne \ Documents \ work \ freelance \ sites \ fws_templates \ gamer \ scss \ store.scss" "C:\ Users \ Leanne \ Documents \ work \ freelance \ sites \ fws_templates \ gamer \ css \ store.css" 语法错误:找不到导入文件或不可读: 基础/组件/手风琴. 加载路径:C:/Users/Leanne/Documents/work/freelance/sites/fws_templates (已弃用) 在C:\ Users \ Leanne \ Documents \ work \ freelance \ sites \ fws_templates \ gamer \ scss \ foundation \ foundation.scss的第10行 从C:\ Users \ Leanne \ Documents \ work \ freelance \ sites \ fws_templates \ gamer \ scss \ store.scss的第11行开始 使用--trace进行回溯.完成.

"C:\Ruby193\bin\sass.bat" "--cache-location" "C:\Users\Leanne\AppData\Local\NetBeans\Cache\7.4\sass-compiler" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\css\store.css" Syntax error: File to import not found or unreadable: foundation/components/accordion. Load path: C:/Users/Leanne/Documents/work/freelance/sites/fws_templates (DEPRECATED) on line 10 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\foundation.scss from line 11 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss Use --trace for backtrace. Done.

但是,现在我只是再次得到原始错误消息.不知道该怎么办.见下图,显示我已经按照说明进行了所有操作(我认为).

However Now I simply get the original error message again. No idea what to do. See image below showing that I have done everything according to the instructions (I think).

http://i.stack.imgur.com/Eekyt.png

推荐答案

您的路径环境变量指向错误的文件夹

您通往红宝石的路径是C:\ Ruby193 \ bin

Your Path to ruby is C:\Ruby193\bin

返回并编辑路径环境变量,以指向C:\ Ruby193 \ bin.目前您有C:\ Ruby \ 192 \ bin

Go back and edit your path environment variable to point to C:\Ruby193\bin . At the moment you have C:\Ruby\192\bin

编辑

然后删除Ruby和193之间的反斜杠.
您的路径设置为:C:\ Ruby \ 193 \ bin :-)!
您的.bat位于文件夹:C:\ Ruby193 \ bin

And Now remove the backslash between Ruby and 193.
Your Path is set to : C:\Ruby\193\bin :-) !
your .bat is in Folder : C:\Ruby193\bin

提示

转到选项

其他-> CSS预处理器

Miscellaneous --> CSS Preprocessors

检查:生成其他信息(调试)

check : Generate extra information (debug)

这篇关于Netbeans-安装SASS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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