doesn't run 'object is not a function' start.coffee:20:10
a7medkamel opened this issue · comments
I can't seem to get it to run; installed it, installed coffee-script just in case.
does it need to run on same server as mongodb?
connect.staticCache() is deprecated and will be removed in 3.0
use varnish or similar reverse proxy caches.
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: object is not a function
at Object. (/usr/lib/node_modules/smog/start.coffee:20:10)
at Object. (/usr/lib/node_modules/smog/start.coffee:45:4)
at Module._compile (module.js:441:26)
at Object..coffee (/usr/lib/node_modules/smog/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21)
at Module.load (module.js:348:32)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (/usr/lib/node_modules/smog/bin/smog:4:1)
at Module._compile (module.js:441:26)
Almost identical issue, so I write it here as a comment.
I installed with:
$ sudo npm install smog -g
This went smoothly with no error message at all, then:
$ smog
connect.staticCache() is deprecated and will be removed in 3.0
use varnish or similar reverse proxy caches.
/usr/lib/node_modules/smog/start.coffee:20
vein = new Vein(server);
^
TypeError: object is not a function
at Object.<anonymous> (/usr/lib/node_modules/smog/start.coffee:20:10)
at Object.<anonymous> (/usr/lib/node_modules/smog/start.coffee:45:4)
at Module._compile (module.js:449:26)
at Object.require.extensions..coffee (/usr/lib/node_modules/smog/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/usr/lib/node_modules/smog/bin/smog:4:1)
at Module._compile (module.js:449:26)
Yes, you have to install an older version of Vein.
The author specified Vein * as version in package.json, but the newest version breaks smog.
Oops this should be a simple fix - one moment
Fixed in 0.0.8