Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

cake build fail... #191

Closed
yoyeung opened this Issue · 6 comments

4 participants

@yoyeung

Hi All,

After clone from git and install node 0.5.5, npm, coffee-script 1.1.2 from npm.

Cake Build have the problems are listed below...
How can i fix it???

Thanks

Moses

module.js:318
    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module 'coffee-script'
    at Function._resolveFilename (module.js:318:11)
    at Function._load (module.js:263:25)
    at Module.require (module.js:341:17)
    at require (module.js:352:17)
    at Object.<anonymous> (/root/download/chosen/Cakefile:6:18)
    at Object.<anonymous> (/root/download/chosen/Cakefile:142:4)
    at Module._compile (module.js:416:26)
    at Object.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script.js:57:25)
    at /usr/local/lib/node_modules/coffee-script/lib/cake.js:41:20
    at path.js:391:19
@mahemoff

Did you install coffee-script (and uglify-js)? See the README and Cakefile.

npm -g install coffee-script uglify-js

@yoyeung
@yoyeung
/usr/local/lib
├── coffee-script@1.1.2 
├─┬ npm@1.0.15 
│ ├── abbrev@1.0.3 
│ ├── node-uuid@1.2.0 
│ ├── nopt@1.0.4 
│ └── semver@1.0.7 
└── uglify-js@1.0.6 

@yoyeung yoyeung closed this
@yoyeung yoyeung reopened this
@reconbot

Is your module path set in the NODE_PATH environment variable?

I have nodejs installed in my home dir so your path will differ but I put this in my .profile. Find your node_modules directory and use that path instead.
export NODE_PATH=~/node/lib/node_modules

@pfiller
Owner

NODE_PATH will probably resolve the issue.

@pfiller pfiller closed this
@yoyeung

Finally i reinstall node, npm and coffeescript
everything is ok now.

Thanks all and sorry for the reply late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.