sudo apt-get install npm
To check if npm is installed
Now to install CoffeeScript
sudo npm install --global coffeescript
And check again to make sure CoffeeScript is installed
Check if you have node.js installed
If not, then install, symlink, and update
You can omit the symlink if you dont get errors
sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
From there you should be able to type `coffee -i` into the terminal to see if it’s installed properly and you get an interactive prompt.
You can find the CoffeeScript documentation here, The npm (node package manager) documentation here, and the node.js documentation here.