Skip to content

Instantly share code, notes, and snippets.

@beigna
Created July 17, 2013 21:26
Show Gist options
  • Save beigna/6024651 to your computer and use it in GitHub Desktop.
Save beigna/6024651 to your computer and use it in GitHub Desktop.
Node, NPM and lessc
Copiado de http://stackoverflow.com/questions/8986709/how-to-install-lessc-and-nodejs-in-a-python-virtualenv
Here is what I used so far, but it may be optimized I think.
Install nodejs
wget http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz
tar zxf node-v0.6.8.tar.gz
cd node-v0.6.8/
./configure --prefix=/absolute/path/to/the/virtualenv/
make
make install
Install npm (Node Package Manager)
/absolute/path/to/the/virtualenv/bin/activate
curl https://npmjs.org/install.sh | sh
Install lesscss
npm install less -g
When you activate your virtualenv you can use lessc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment