Installing a coffee script on ubuntu installs all the files correctly, but the command line does not work

Everything,

I recently switched my developer environment from windows7 to Ubuntu12 and everything went smoothly except for the coffee script. I followed this exact sequence of commands:

sudo apt-get install nodejs sudo apt-get install npm //checked that both are their latest versions npm -g install coffee-script 

when i do this i only see the following lines

 npm http GET https://registry.npmjs.org/coffee-script npm http 304 https://registry.npmjs.org/coffee-script /usr/bin/coffee -> /usr/lib/node_modules/coffee-script/bin/coffee /usr/bin/cake -> /usr/lib/node_modules/coffee-script/bin/cake coffee-script@1.4.0 /usr/lib/node_modules/coffee-script 

which coffee and cake points to / usr / bin / coffee | cake, but the commands actually do nothing.

I'm at a loss.

Please send help!

Steve kane

+4
source share
4 answers

Everything,

I could not solve this problem and manually installed the old version of node, creating it and not using sudo. I think I did the same for coffee - script. Now it works correctly, although I'm not quite sure where the problem came from.

-2
source

Had the same problem. Removing the package "node" (note: not nodejs, but sic! "Node") did it for me

+5
source

This is like a package name conflict. See https://github.com/jashkenas/coffee-script/issues/936

Until this is fixed, you can manually link /usr/bin/nodejs to /usr/bin/node .

+2
source

Install node.js using Chris Lea PPA :

 sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs 

Install CoffeeScript with apt-get :

 sudo apt-get install coffeescript 

Now you can use coffee to create CoffeeScript and cake.coffeescript to start Cake.

0
source

Source: https://habr.com/ru/post/1447060/


All Articles