Need help - setting up frontend environment

Hi I'm trying to setup a good front-end environment away from the vanilla html & css basic. I know the tools I need but cant work out how to get them all installed and setup in mint (which I'm new to) tools I'm trying to get setup are as follows, any help or guides that people can direct me to would be much appreciated, as many of the resources I come across are mac or windows related;

  • ruby
  • rvm
  • gems

  • node

  • npm

    (yeoman)

    • sass
    • compass
    • grunt
    • bower

In short I guess what I really need is the correct and up to date commands for terminal, but i just cant seem to find a straight forward type this, install this, update this kind of guidance on their sites. its confusing the hell out of me, I can download them all, but don't then know how to run those files, my package manager keeps failing, and I'm unsure how to use those files that i have downloaded through the terminal.

E.G

sudo -s apt-get install node
sudo -s apt-get install node.js
sudo -s apt-get install npm
sudo -s apt-get install node.js version ?.?
sudo -s apt-get install node.js version ?.? /path/path/path

Many thanks in advance!

You need to add a PPA repository to install node.js, as it isn't in the main Mint repositories:

$ sudo add-apt-repository ppa:chris-lea/node.js

After this, you can then update your local package lists and install node.js and npm:

$ sudo apt-get update
$ sudo apt-get install nodejs npm

This will then let you install the node libraries that you want:

$ npm install -g sass compass grunt bower

(Note the -g flag here which tells npm to install the packages globally)


To install RVM - which handles the installation of different Ruby (and gem) versions, you can find numerous guides on the internet (such as this one). The official documentation is also very useful. The process usually looks something like this:

$ sudo apt-get install curl
$ curl -L https://get.rvm.io | bash -s stable --ruby
$ source ~/.rvm/scripts/rvm
$ rvm requirements
$ rvm install <ruby version>