yocontra / smog

HTML5/Node/WebSocket MongoDB panel
MIT License
443 stars 42 forks source link

Error on run #2

Closed SeanBannister closed 12 years ago

SeanBannister commented 12 years ago

Haven't had much of a chance to look into this bug, first time using smog.

But when I run smog I get the following error:

user@server:~/monetization-server/lib> 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.CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)
    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:446: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:353:31)
    at Function._load (module.js:311:12)
    at Module.require (module.js:359:17)
    at require (module.js:375:17)
    at Object.<anonymous> (/usr/lib/node_modules/smog/bin/smog:4:1)

During install I also get a WARN:


> pane@0.0.10 install /usr/lib/node_modules/smog/node_modules/pane
> moc ./src/HookedPage.h  -o ./src/HookedPage.moc && node-waf configure build

sh: 1: moc: not found
npm http 200 https://registry.npmjs.org/engine.io-client/0.2.2
npm WARN optional dependency failed, continuing pane@0.0.10

I'm running Node v0.6.18

SeanBannister commented 12 years ago

Just upgraded to node v0.8.9, same problem.

And now I just realised the >= 0.6 in the Readme. If I get a chance I'll look into getting things ready for later versions of node.

headconnect commented 12 years ago

I've got a (very) similar error in Node v0.6.15:

[og@go smog]# smog 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.CALL_NON_FUNCTION_AS_CONSTRUCTOR (native) at Object. (/usr/lib/nodejs/smog/start.coffee:20:10) at Object. (/usr/lib/nodejs/smog/start.coffee:45:4) at Module._compile (module.js:441:26) at Object..coffee (/usr/lib/nodejs/smog/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Module.require (module.js:354:17) at require (module.js:370:17) at Object. (/usr/lib/nodejs/smog/bin/smog:4:1) [og@go smog]# node -v v0.6.15

Running CentOS 6.2, installed not too long ago (and got a shasum error first time trying to install). Kindof get the feeling that it's somehow trying to import unstable code from dependent libs.

alvincrespo commented 12 years ago

Also getting this as well.

danmilon commented 12 years ago

Same here

jus101 commented 12 years ago

+1

jangxyz commented 12 years ago

Seems like it doesn't match the version of a module named Vein.

I reinstalled it with what seems like a proper version.

$ cd `npm root -g`/smog
$ npm remove vein
$ npm install vein@0.3.4

Works on OS X 10.6

pyrat commented 12 years ago

Tried the fix above but it didnt work for me on OSX 10.6.

egueidan commented 12 years ago

@jangxyz is right, it looks like a wrong version of vein... His solution works fine on OSX 10.7.4 with a minor edit:

$ cd `npm root -g`
$ cd smog
$ npm remove vein
$ npm install vein@0.3.4
jangxyz commented 12 years ago

oops. forget the second line. thank you @egueidan fixed the original comment.

pyrat commented 12 years ago

Ah nice! Thanks.

SeanBannister commented 12 years ago

Cheers, I've forked the project and issued a pull request with this as a fix https://github.com/wearefractal/smog/pull/4

Now I'm just left with this error when clicking on a collection https://github.com/wearefractal/smog/issues/5