nvm - Running Multiple Node.js Versions in Tandem -


i'm working on 2 applications. first 1 has been migrated 4.2, other 1 still needs migrated. so, i'm wondering... there way run 2 different processes against 2 diff node.js binaries? in case, 4.2 , 0.12.

yes. if use nvm (https://github.com/creationix/nvm) you'll able easily.

using nvm install both node.js v4.2 , v0.12:

nvm install 4.2
nvm install 0.12

when run nvm use <version>, nvm set node.js version <version> terminal window/tab. so, in 1 terminal can run nvm use 4.2 run node.js application, , in terminal window or tab run nvm use 0.12 , run node.js application uses v0.12.

if don't want terminal window or tab scoped specific version of node.js, can use nvm run server using nvm run <version> <args>. example:

nvm run 0.12 server.js


Comments

Popular posts from this blog

ios - UITEXTFIELD InputView Uipicker not working in swift -

Hatching array of circles in AutoCAD using c# -