Closed hudon closed 11 years ago
Great to have you looking at oj! You need to install it globally instead. Try running:
npm install -g oj
Let me know if that works for you!
That didn't work either (same error)
Fixed! The issue was coffee-script was a dev dependency instead of a full dependency. Let me know if that resolves it for you.
Also, I should be clear that you don't need to use CoffeeScript, unless you want to =). The command line tool understands files of type .oj (javascript) or .ojc (coffeescript), to make static site building simpler.
If CoffeeScript is optional, shouldn't it be removed completely from package.json? OJ's end-user would include CoffeeScript within their own application's dev dependencies.
Sorry to not be clear. CoffeeScript is optional to use but not optional for the OJ commandline tool. The end user doesn't need to install anything but the packages they use oj-twitter-button
for example and the oj commandline will do the rest.
Ah, okay, that makes sense. Thanks for the speedy clarification though. I haven't had the time just yet to experiment with it myself but it definitely looks like a fun project!
@evanmoran yep, that fixed it. cheers
Glad you all are talking a look! Feel free to reach out to me if something isn't clear or you have feature ideas.
Running
npm install oj
followed by./node-modules/.bin/oj
throws an uncaught exception: