The example I shows was just the basic concept of what im trying to do. 

What I'm really doing is spawning a new process from within node. each 
spawn might be a different version of node and i need to install 
all dependencies for the specific version of node. So each spawn has its 
own dependencies and its own version. To give you wan idea you can see this 
file https://github.com/MangoRaft/Raft/blob/v3/raft/common/spawn.js

>I'd recommend looking into using nvm or another tool like it to manage 
multiple versions of node.
I have looked at nvm but i dont know if it does what I want. I dont 
know enough about nvm to really see if its a fit for what i want. With nvm 
can i spawn two version of node at the same time? Or do i have to set the 
version then spawn that version then set the other and spawn with other 
version?

On Wednesday, February 27, 2013 5:44:40 PM UTC-5, Tim Dickinson wrote:
>
> I have a build of node version 0.6.12 but my main install of node is 0.8.20
>
> This is my output
>
> [bob@bob-workstation test]$ /tests/tmp/node/0.6.12/bin/npm install daemon
> npm http GET https://registry.npmjs.org/daemon
> npm http 304 https://registry.npmjs.org/daemon
>
> > [email protected] preinstall /test/node_modules/daemon
> > bash ./install
>
> Checking for program g++ or c++          : /usr/bin/g++ 
> Checking for program cpp                 : /usr/bin/cpp 
> Checking for program ar                  : /usr/bin/ar 
> Checking for program ranlib              : /usr/bin/ranlib 
> Checking for g++                         : ok  
> Checking for node path                   : not found 
> Checking for node prefix                 : ok /usr/local 
> 'configure' finished successfully (0.044s)
> Waf: Entering directory `/test/node_modules/daemon/build'
> [1/2] cxx: src/daemon.cc -> build/Release/src/daemon_1.o
> [2/2] cxx_link: build/Release/src/daemon_1.o -> build/Release/daemon.node
> Waf: Leaving directory `/test/node_modules/daemon/build'
> 'build' finished successfully (0.237s)
> [email protected] ./node_modules/daemon
> [bob@bob-workstation test]$ ls ./node_modules/daemon/lib/
> daemon.js  daemon.v0.8.20.node
> [bob@bob-workstation test]$ 
>
>
> Im trying to install daemon for node version 0.6.12 not 0.8.20
>

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

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to