This repository has been archived by the owner on Jun 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Error: Cannot find module 'coffee-script' error when building with cake #56
Comments
I get the same:
|
Same here: (mac, updating node & npm to latest version did not work)
|
Finally found a fix, set your NODE_PATH env variable correctly. See http://forums.pragprog.com/forums/169/topics/9021
I followed instructions elsewhere to only include /usr/local/lib/node, but the /usr/local/lib/node_modules is required as well. |
Yep! that did it. Thanks! |
👍 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
CoffeeScript version 1.1.3
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'coffee-script'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/home/ben/OSS/jsrepl/Cakefile:9:12)
at Object. (/home/ben/OSS/jsrepl/Cakefile:290:4)
at Module._compile (module.js:432:26)
at Object.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:66:25)
at Object.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:48:18)
at Object. (/usr/local/lib/node_modules/coffee-script/bin/cake:7:38)
The text was updated successfully, but these errors were encountered: