Long time no see 🙂
Today I’ll be a little bit more serious than usual and talk about some business.
There is a language called CoffeeScript, which I won’t explain what it is.
Here is how to install it in Ubuntu, Linux Mint etc.
FIrstly, go coffeescript.org‘s installation anchor.
Second, go to source repository and clone the project somewhere in your computer (the marked text in bottom-right).
command: git clone https://github.com/jashkenas/coffeescript.git
Follow the “releases” link and download the one at the top.
In this case, 1.9.3. Then extract it somewhere.
Third, follow the instructions in the first image. That is:
Go to the folder where you created coffeescript folder. (Where coffeescript folder resides).
To install the latest master CoffeeScript compiler with npm.
If you don’t have npm, first install it using the command in the first line.
sudo apt-get install npm npm install -g coffeescript
You will probably get an error like this:
So, go do this command:
Then run this again:
npm install -g coffeescript
Check if it works by trying to run coffee.
You will probably get this error:
/usr/bin/env: node: No such file or directory
So, you need to create something called node for the CoffeeScript.
Link the nodejs command to node
sudo ln -s /usr/bin/nodejs /usr/bin/node
Then try again:
Now you have a running coffeescript compiler!