Andrew JD Hudson

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.

Terminal window
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:

Terminal window
function updateNode() {
nvm install "$1";
nvm alias default "$1";
}

and use it like so:

Terminal window
updateNode 26.2.0
← Back to all blog posts Edit this post on Github
andrew jd hudson :) •