Installing CoffeeScript
Hang in there! We're almost done. Now that we have installed Node, it's easy to install CoffeeScript.
npm install -g coffee-script
Tip
If this command fails with a permissions error (which is sometimes reported as an EACCES
error), you may need to run it with sudo
, as follows:
sudo npm install -g coffee-script
This depends on the permissions of your Node installation, and varies between different systems.
Now you should be able to see a version number when you run the following command:
coffee -v
If so, congratulations! You've installed CoffeeScript!
Tip
If you have trouble installing or using CoffeeScript, the IRC channel is a great place to look for help. You can use your IRC client of choice to connect to the #coffeescript ...
Get CoffeeScript Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.