how to update node globally with nvm
350
Did you know that node 26 now supports the Temporal API for date manipulation?
I have been following the development process closely and found myself wanting to update to different versions of node.
nvm install 26.2.0
nvm alias default 26.2.0
If you use zsh you can create a function that does this in one line:
function updateNode() {
nvm install "$1";
nvm alias default "$1";
}
and use it like so:
updateNode 26.2.0