Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"coffee" command fails silently, how to debug?

Tags:

coffeescript

When using coffee-script this command runs ok on 1 computer but silently fails on another.

coffee --output dir --compile dir
make: *** [js] Error 1

How can I debug? Any flags for verbose output?

npm list -g
/usr/local/lib
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└── [email protected]

Even coffee --version fails with no output

like image 592
Sergey Avatar asked Mar 15 '26 16:03

Sergey


1 Answers

It was a terrible mix of old Ubuntu's/new packages.

  1. Needed to remove node, nodejs packages.
  2. Install new versions from PPA

    sudo add-apt-repository ppa:chris-lea/node.js
    sudo apt-get update
    sudo apt-get install python-software-properties python g++ make nodejs

  3. Reinstall coffee-script: sudo npm install coffee-script -g

Thanks

like image 195
Sergey Avatar answered Mar 18 '26 10:03

Sergey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!