Can't start app with "socketsream start" command

51 views
Skip to first unread message

echologic

unread,
Jul 5, 2012, 11:19:35 PM7/5/12
to socket...@googlegroups.com
Hi, 

I'm a newby to both node.js and SocketStream.
I've run across a small issue and I'm hoping someone can point me in the right direction.

I belive I have both node.js SocketStream installed correctly in that I can create a new SS project and launch it using the "node app.js" command.

However, every time I issue the "socketstream start" command I get the following result:
>> socketstream start
Type "socketstream new <projectname>" to create a new application

I cannot start an app, everytime I try it just keeps telling me to "Type "socketstream new <projectname>" to create a new application".

Can someone please point me in the right direction?
I'm very excited about SocketStream. 
Thanks!

Eric Robitaille

unread,
Jul 5, 2012, 11:27:08 PM7/5/12
to socket...@googlegroups.com
Hi,

Socketstream is simply a node app now. 
So you can just start it up like any other node app. :)
> node app.js 

Eric

echologic

unread,
Jul 6, 2012, 12:25:08 AM7/6/12
to socket...@googlegroups.com
Thanks for responding! 

That does work when I launch the SS default test app, but it is not working when trying to launch other SS apps.
Specifically I'm trying to launch an app called "snucode": https://github.com/werg/snucode

Would you happen to know why the "node app.js" command is not working to launch the snucode SS app?
I recognize that the file structure of the snucode app is not quite the same as that of the default app, in so much as the app.js file is not at the root level of the apps directory. How does one launch an SS app with "node app.ja" if the file (in this case "app.coffee") is not located at the apps root?
Again, I'm a big noob and apologize in advance if the answer is obvious or the question not framed correctly.

Thanks

Paul Jensen

unread,
Jul 6, 2012, 3:07:08 AM7/6/12
to socket...@googlegroups.com
Hi echologic,

It might be a case of not running "npm link socketstream" or "npm install" beforehand. If you ran those commands before and running "node app.js" still fails, could you post the stack trace that you see here?

Paul Jensen

Owen B

unread,
Jul 6, 2012, 11:24:31 AM7/6/12
to socket...@googlegroups.com
Hi echologic

I've just looked at snucode and this uses SocketStream 0.2 which is started with "socketstream start".

You can install this (old version) via npm with:

sudo npm install -g socket...@0.2.7

Cheers,

Owen

echologic

unread,
Jul 6, 2012, 3:34:05 PM7/6/12
to socket...@googlegroups.com
That did the trick ;-)

Thanks! 
Reply all
Reply to author
Forward
0 new messages