问题
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.
I've installed Less but what do I type in command line to start compiling?
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?
lessc: ENOENT, open '/Users/William/Desktop/websites/grace/agency.less
回答1:
Try chmod +X /usr/local/bin/lessc
? (Assuming you have runned npm i -g less
with default settings.)
来源:https://stackoverflow.com/questions/31220138/how-do-you-start-less-compiling-in-command-line