问题描述
我是SASS人,但我目前第一次使用Less,因为我为某人制作网站,但我使用的模板是使用Less制作的,并包含所有文件。
I am a SASS man, but I am currently using Less for the first time as I am making a website for someone, but I'm using a template that is made using Less and includes all the files.
我安装了Less,但是在命令行中输入什么来开始编译?
I've installed Less but what do I type in command line to start compiling?
我使用的是MAC和我尝试过 $ lessc agency.less> agency.css
& sudo lessc agency.less
但两者都返回以下同样的错误。我做错了什么?
I'm using a MAC and I've tried $ lessc agency.less > agency.css
& sudo lessc agency.less
but both return the same error given below. What am I doing wrong?
推荐答案
尝试 chmod + X / usr / local / bin / lessc
? (假设您已使用默认设置运行 npm i -g less
)。
Try chmod +X /usr/local/bin/lessc
? (Assuming you have runned npm i -g less
with default settings.)
这篇关于如何在命令行中启动Less编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!