twilson63 / express-coffee

A Template for NodeJs Application using Express, CoffeeScript, Jade, Stylus, Nib
http://twilson63.github.io/express-coffee
MIT License
626 stars 152 forks source link

Err: TypeError: Bad argument #3

Closed bsodmike closed 13 years ago

bsodmike commented 13 years ago

My versions:

(master)$ coffee app.coffee 
TypeError: Bad argument
    at Object.stat (fs.js:388:11)
    at HTTPServer.listen (net.js:1051:19)
    at Object.<anonymous> (/users/mike/nodejs/express-coffee/app.coffee:11:7)
    at Object.<anonymous> (/users/mike/nodejs/express-coffee/app.coffee:12:4)
    at Module._compile (module.js:402: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/command.js:147:29
    at /usr/local/lib/node_modules/coffee-script/lib/command.js:115:26
    at [object Object].<anonymous> (fs.js:107:5)
    at [object Object].emit (events.js:61:17)

and

(master)$ node server.js 

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Bad argument
    at Object.stat (fs.js:388:11)
    at HTTPServer.listen (net.js:1051:19)
    at Object.<anonymous> (/users/mike/nodejs/express-coffee/app.coffee:11:7)
    at Object.<anonymous> (/users/mike/nodejs/express-coffee/app.coffee:12:4)
    at Module._compile (module.js:402:26)
    at Object.<anonymous> (/usr/local/lib/node_modules/coffee-script/lib/coffee-script.js:14:21)
    at Module.load (module.js:334:31)
    at Function._load (module.js:293:12)
    at require (module.js:346:19)
    at Object.<anonymous> (/users/mike/nodejs/express-coffee/server.js:2:1)

Any thoughts on this? Thanks.

benui-dev commented 13 years ago

I got this exact same issue. Fresh install of CoffeeScript, coffeekup and express.

twilson63 commented 13 years ago

Hey Guys, thanks for reporting, I should have this resolved shortly.

twilson63 commented 13 years ago

Ok,

This issue should be resolved, please let me know if it is not. Also I change the layout and added a Cakefile that compiles coffee to js and runs the compiled js, for a more production like experience.

You can build your files by calling


cake build

Run your specs

cake spec

Or watch your src folder to compile as files are saved.

cake watch

Run you app using

node server.js
bsodmike commented 13 years ago

Awesome - will check it out in a bit =)