I second nodeenv. It's by far the best thing for system deployments where you may need to run node apps on different node versions simultaneously.
On Sunday, February 26, 2012 at 11:51:47 AM UTC-6, Dan North wrote: > > The nicest way I've found for multiple separate node installs is nodeenv. > It works just like Python's virtualenv: > > Install a version: > % nodeenv -n 0.6.10 /path/to/node-0.6.10 > > Use a version: > % source /path/to/node-0.4.6/bin/activate > > Now the correct node and npm are in your path. Simples! > > To install it just pip install nodeenv (it's a Python script). > > Cheers, > Dan > ------------------------------ > *From: * Thomas <tbas...@gmail.com <javascript:>> > *Sender: * nod...@googlegroups.com <javascript:> > *Date: *Sun, 26 Feb 2012 09:28:06 -0800 (PST) > *To: *<nod...@googlegroups.com <javascript:>> > *ReplyTo: * nod...@googlegroups.com <javascript:> > *Subject: *[nodejs] What's the best way to use multiple version of node > AND npm? > > Hi, > > After installing a bunch of version of node, npm, modules using different > ways, I managed to fuck up my installation… I've deleted of files related > to node, npm and node modules to start my installation from scratch. > > I'm using Mac OS X Lion and reinstalled the official package coming with > npm bundled: http://nodejs.org/dist/v0.6.11/node-v0.6.11.pkg (instead of > using homebrew's node version like before). > > But I also need node 0.4.x for some project running on Heroku. > Unfortunately the npm version bundled with node 0.6.11 doesn't work with > node 0.4.x. And it seems that `n` and `nave` can manage node versions but > not npm versions. How would you do that? > > Thanks > > -- > 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 <javascript:> > To unsubscribe from this group, send email to > nodejs+un...@googlegroups.com <javascript:> > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/0227fc33-b27b-4ddb-914f-935f6705efbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.