Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why don't I have the 'coffee' command?

I have node and npm on my Centos 7 instance. I did a

sudo npm -g install coffee

And it reported no errors. But I don't have a coffee executable, which was kind of the point.

%: type -a coffee
coffee not found
%: type -a Coffee
Coffee not found

It seems like I should need something for NPM on my $PATH. If I knew what to add, I would try that.

I'm not sure how to debug this, sorry. I've tried this:

%: npm bin
/home/jonea/node_modules/.bin

Interestingly, that's not a directory that exists:

%: ls -la ~/node_modules
total 12
drwxr-xr-x  3 jonea compgen 4096 Jun  6 10:34 .
drwxr-xr-x 33 jonea compgen 4096 Jun  7 09:33 ..
drwxr-xr-x  4 jonea compgen 4096 Jun  6 10:34 coffee

And, no, there are no executables in that coffee directory.

If anyone has ideas about other debugging I can do, I'll append the results here.

like image 693
Andy Jones Avatar asked Jun 07 '16 08:06

Andy Jones


1 Answers

The package you installed has nothing to do with CoffeeScript check this npm coffee

You need different package

npm install -g coffeescript
like image 60
Molda Avatar answered Sep 23 '22 19:09

Molda