Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

coffeekup cli not working with coffeescript 1.2 #106

dubiousdavid opened this Issue Jan 16, 2012 · 10 comments


None yet
8 participants

Error: Cannot find module 'coffee-script/lib/optparse'

Should be 'coffee-script/lib/coffee-script/optparse' or 'coffee-script/optparse'. Not sure. I'm new to npm and node. Either way the path is wrong.

Getting this too.

Vayn commented Jan 25, 2012

I've got the same issue.

flosse commented Jan 25, 2012

me too :-/

avioli commented Feb 1, 2012

a nasty workaround hack:

Note: do a npm update or npm -g update, just to be sure you are up to date (use -g to do a global update)

go to your coffeekup instance (npm -g install coffeekup installs it under /usr/local/lib/node_modules/coffeekup/)
cd lib/
and open cli.js with your fav text editor.

change this line (#7):

  OptionParser = require('coffee-script/lib/optparse').OptionParser;


  OptionParser = require('coffee-script/lib/coffee-script/optparse').OptionParser;

works for me. hope it helps someone else as well.

gradus commented Feb 23, 2012

I had run into this problem too. Have it marked as an issue to resolve in my own version that I started since it looks like this one is not being maintained, but installing optparse globally fixes the problem with CoffeeCup which should work just like CoffeeKup with a minor name change. I will be actively maintaining it and addressing issues (hopefully w/ some help)



gradus commented Feb 25, 2012

This issue is fixed in my clone of coffeekup.


avioli's hack worked for me for now

avioli commented Mar 17, 2012

@msutherl if you clone coffeecup, not coffeekup (a k difference) as @gradus says you won't need to do my hack, because he fixed it in his clone.

gradus commented Mar 17, 2012

@msutherl @gradus https://github.com/gradus/coffeecup is being actively maintained. The current version of CoffeeCup v0.3.5-3 is compatible with the latest stable node and coffeescript versions. 0.6.12 and 1.2.0 respectively. I am working on a few new features and some small fixes. Should be releasing a new version soon.

Itja commented Mar 26, 2015

I don't know how exactly i ran into this problem 3 years later (using only npm packages), but another workaround for this is
cd /usr/local/lib/node_modules/coffee-script/lib
ln -s coffee-script/optparse.js optparse.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment