Compile Boostrap from sources in Ubuntu 14.04

Unfortunately, Ubuntu software repos are not up to date with Nodejs.

You shall use Chris Lea’s Repo

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update

Then, install nodejs:

sudo apt-get install nodejs

Then it’s time for grunt to be installed (that’s  just plain Bootstrap’s tutorial from now on):

sudo npm install -g grunt-cli

Get into your bootstrap directory and run

npm install
npm update

You’re good to go, just run

grunt watch

Also, if you want sourcemaps, see this SO answer.


2 thoughts on “Compile Boostrap from sources in Ubuntu 14.04

  1. I already installed node.js and npm from lubuntu repo, and have error running con Grunt; how to uninstall? or is possible to install this version and overwrite the old one? I installed lubuntu/lamp/drupal on vmware one week ago first time.. can you help me? grazie!

  2. Hi Antonello; I think you should uninstall node.js with apt-get remove node-js; usually ubuntu’s repos are not updated with the latest releases. After that, I think you should be good to use this little ‘tutorial’!

Leave a Reply

Your email address will not be published. Required fields are marked *