Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

coffeescript install

I can't install CoffeeScript on my Macbook. The same commands works just fine on my iMac.

$ surganov:~ surganov$ sudo npm install coffee-script -g
npm http GET https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/coffee-script
/usr/local/share/npm/bin/coffee -> /usr/local/share/npm/lib/node_modules/coffee-script/bin/coffee
/usr/local/share/npm/bin/cake -> /usr/local/share/npm/lib/node_modules/coffee-script/bin/cake
[email protected] /usr/local/share/npm/lib/node_modules/coffee-script

$ surganov:~ surganov$ coffee
-bash: coffee: command not found
like image 816
surganov Avatar asked Aug 31 '12 09:08

surganov


People also ask

How do I know if CoffeeScript is installed?

The coffee and cake commands will first look in the current folder to see if CoffeeScript is installed locally, and use that version if so. This allows different versions of CoffeeScript to be installed globally and locally.

Is CoffeeScript still a thing?

As of today, January 2020, CoffeeScript is completely dead on the market (though the GitHub repository is still kind of alive).


1 Answers

If you want to access coffescript binary globally, you need to install it so:

npm install -g coffee-script

And then add the installation directory to your PATH. Good way to automate this is to use nvm.

like image 141
Artur Nowak Avatar answered Oct 22 '22 16:10

Artur Nowak