running npm project as node program

33 views
Skip to first unread message

Mark Hahn

unread,
Apr 23, 2012, 2:36:52 AM4/23/12
to nodejs
I *conceptually* want to do this ...

  npm install wonder-app
  node wonder-app

In other words I want to distribute the complete app ready to run via npm.  What is the easiest way to do this?

Paddy Byers

unread,
Apr 23, 2012, 2:44:34 AM4/23/12
to nod...@googlegroups.com
Hi,

What about:

npm install wonder-app
node --eval "require('wonder-app')()"

?

Paddy

Oliver Leics

unread,
Apr 23, 2012, 3:18:15 AM4/23/12
to nod...@googlegroups.com
Have a look at
http://npmjs.org/doc/json.html#bin
and then:

npm install -g wonder-app
wonder-app
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en



--
Oliver Leics @ G+
https://plus.google.com/112912441146721682527

Mark Hahn

unread,
Apr 23, 2012, 3:25:09 AM4/23/12
to nod...@googlegroups.com
Thx.  Your suggestions make it easy.
Reply all
Reply to author
Forward
0 new messages