stevekane
stevekane

Reputation: 372

installing coffee-script on ubuntu installs all the files correctly but command line doesn't work

All,

I have recently switched my dev environment from windows7 to Ubuntu12 and everything has been running smoothly except coffee-script. I have executed 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 see only 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  
[email protected] /usr/lib/node_modules/coffee-script  

which coffee and which cake point to /usr/bin/coffee|cake but the commands actually do nothing at all.

I am at a loss.

Please send help!

Steve Kane

Upvotes: 4

Views: 2141

Answers (4)

RobLoach
RobLoach

Reputation: 2196

Install node.js using Chris Lea's PPA:

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

Install CoffeeScript using apt-get:

sudo apt-get install coffeescript

Now you can use coffee to build CoffeeScript, and cake.coffeescript to run Cake.

Upvotes: 0

edoloughlin
edoloughlin

Reputation: 5891

This seems to be related to 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.

Upvotes: 2

Joehannes
Joehannes

Reputation: 301

Did have the same problem. Uninstalling the package "node" (note: not nodejs but sic! "node") did it for me

Upvotes: 5

stevekane
stevekane

Reputation: 372

All,

I was not able to resolve this issue and wound up manually installing an older version of node by building it and not using sudo. I think did the same for coffee-script. It is now working correctly though I'm not entirely sure where the problem came from.

Upvotes: -2

Related Questions