This follows the same pattern as using chruby
, which is quite nice. Configured to autoload from .node-version
.
https://github.com/tkareine/chnode https://github.com/nodenv/node-build
- List available Node versions:
chnode
- Use a Node:
chnode 16.20.2
- Reload Nodes:
chnode --reload
- List known Node versions:
node-build --definitions
- Install a Node version:
node-build 18.19.0 ~/.nodes/node-18.19.0
- Symlink a Node version to allow for just
18
in.node-version
:ln -s ~/.nodes/node-16.20.2 ~/.nodes/node-16