coffeekup icon indicating copy to clipboard operation
coffeekup copied to clipboard

coffeekup cli not working with coffeescript 1.2

Open dubiousdavid opened this issue 12 years ago • 10 comments

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.

dubiousdavid avatar Jan 16 '12 14:01 dubiousdavid

Getting this too.

reaktivo avatar Jan 23 '12 17:01 reaktivo

I've got the same issue.

vayn avatar Jan 25 '12 13:01 vayn

me too :-/

flosse avatar Jan 25 '12 14:01 flosse

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;

into

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

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

avioli avatar Feb 01 '12 01:02 avioli

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)

https://github.com/gradus/coffeecup/issues/2

https://github.com/gradus/coffeecup

gradus avatar Feb 23 '12 23:02 gradus

This issue is fixed in my clone of coffeekup.

https://github.com/gradus/coffeecup

gradus avatar Feb 25 '12 21:02 gradus

avioli's hack worked for me for now

flowerornament avatar Mar 17 '12 03:03 flowerornament

@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.

avioli avatar Mar 17 '12 11:03 avioli

@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.

gradus avatar Mar 17 '12 12:03 gradus

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

Itja avatar Mar 26 '15 21:03 Itja