我正在使用Ubuntu 12.04.我想在我的系统上安装
LESS.有人可以告诉我如何安装LESS?
解决方法
sudo apt-get update sudo apt-get install git-core curl build-essential openssl libssl-dev git clone https://github.com/joyent/node.git cd node ./configure make sudo make install node -v
现在下载NPM,我们将用它来安装LESS
curl http://npmjs.org/install.sh | sudo sh npm -v npm install less
你必须将PATH更新为LESS
gedit ~/.bashrc PATH=$PATH:$HOME/node_modules/less/bin source ~/.bashrc
您现在应该可以从终端窗口调用LESS:
lessc LESSFILE.less > CSSFILE.css
(来源:sprResponsive)