Reply to original message
For the small amount of data that you saved by doing the following, this is almost not worth it. It is said ...
, nvm:
> nvm which
/Users/[username]/.nvm/versions/node/[version]/bin/node
/home/[username]/.nvm/versions/node/[version]/bin/node
, nvm node:
> which -a node
(.. , node, , ).
, .
> ln -s /path/to/node/version ~/.nvm/versions/node/[version]
Node Swapping Made Simple
nvm- node
> nvm ls
v0.10.33
v0.10.36
v0.10.40
v4.0.0
v4.2.2
v5.0.0
-> v5.1.1
system
default -> v5.1.1
system -> v5.1.1
node -> stable (-> v5.1.1) (default)
stable -> 5.1 (-> v5.1.1) (default)
iojs -> N/A (default)
x, x.y x.y.z: nvm install x.y.z.
:
> nvm install 4.2.2
> nvm install 4.2.2 --reinstall-packages-from=0.10.40
:
> nvm use 5.1.1
# But if only a local node command required, use:
# nvm exec [version] [command]
> nvm exec 0.10.33 node server.js
.nvmrc , , node .
#.nvmrc file contents:
5.1.1