This is where the package.json file shines.  Simply define your app's
dependencies in it's package.json.  Then on whatever machine you're
working, getting the right dependencies is a simple `npm install` away.

This also has the added benifit of avoiding dependency issues where project
A depends on foo@0.0.4, but project B depends on foo@0.2.1 and they
are incompatible versions.  Globally installed dependencies have versioning
issues.

I like to keep my code in the open, so I push everything to github.  I'm
constantly working on a new machine (I format and install OS about weekly)
 I don't have to worry about backing up my data, it's always somewhere I
can find it.

Document your dependencies using package.json (hint `npm init` and `npm
install --save foo` are your friends) and push your code to a central
repository like github.  (If you don't want others seeing your code and
don't want to pay for a premium github account, it's trivial to setup your
own git repo if you have a vps somewhere).


On Sat, Jun 23, 2012 at 3:18 PM, Tim Dickinson <price.ti...@gmail.com>wrote:

> Hello github!!
>
> Or get yourself a laptop. Your trying to have the cake and eat it too.
>
> --
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to