How do you start Less compiling in command line

血红的双手。 提交于 2019-12-12 03:37:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!