本文介绍了如何在命令行中启动Less编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 08:38
查看更多