【问题标题】:how to configure less in eclipse?如何在eclipse中配置less?
【发布时间】:2014-09-03 08:13:27
【问题描述】:

我从http://www.normalesup.org/~simonet/soft/ow/eclipse-less.en.html下载了插件。

并安装在 eclipse 上,但是当我尝试将 less 编译为 css 时,我得到了这个错误

Cannot be launched because of an I/O exception
Cannot run program "lessc": CreateProcess error=2, The system cannot find the file specified

任何成功安装此工具的人都可以指导我正确的方向吗?也已经安装了 xtext。

【问题讨论】:

    标签: eclipse configuration less


    【解决方案1】:

    lessc GitHub repo 也有类似的问题:issues/213

    我添加了一个新的启动配置如下:

    LESS command: lessc (existing)
    Compress the generated CSS file (existing)
    Use this launch configuration as default
    

    您必须更改“LESS 命令”。
    请填写您的“lessc”物理路径,就像“C:\Users\[Yourname]\AppData\Roaming\npm\lessc.cmd”一样
    (Windows 7,node.js 标准安装程序)

    也就是说你必须指明lessc.cmd的完整路径

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-31
    • 2016-07-06
    • 2014-04-14
    • 2012-04-05
    • 2017-09-01
    相关资源
    最近更新 更多