Lesscss命令行编译器Lessc [英] Lesscss command line compiler Lessc
本文介绍了Lesscss命令行编译器Lessc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我正在尝试在Mac上安装LessCss命令行编译器.
Hi Im trying to get the LessCss command line compiler installed on a Mac.
我尝试过
brew install less
Error: No available formula for less
brew install lessc
Error: No available formula for lessc
sudo npm install -g less
..Installs happily..
sudo npm install -g lessc
npm http GET https://registry.npmjs.org/lessc
npm http 404 https://registry.npmjs.org/lessc
npm ERR! 404 'lessc' is not in the npm registry.
npm install less --global
..Installs happily..
npm install lessc --global
npm http GET https://registry.npmjs.org/lessc
npm http 404 https://registry.npmjs.org/lessc
npm ERR! 404 'lessc' is not in the npm registry.
我所能得到的是
less js/less/style.less > style-theme.css
-bash: less: command not found
lessc js/less/style.less > style-theme.css
-bash: lessc: command not found
有人对此有任何经验吗?
Does anyone have any experience with this?
我发现有人说我的路径变量可能被弄乱了.这个:
I found something said my path variable might be messed up. This:
/bin/echo $PATH
得到我:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
推荐答案
lessc
的npm
程序包名称是less
尝试写作
sudo npm install -g less
这篇关于Lesscss命令行编译器Lessc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文