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
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.
As of today, January 2020, CoffeeScript is completely dead on the market (though the GitHub repository is still kind of alive).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With