- Update Node.js
brew upgrade nodeInstalled it with nvm? Use the Linux steps instead.
Check it worked
- Check the version
node --version
- Install the latest LTS and bring your global packages along
nvm install --lts --reinstall-packages-from=current - Make it the default
nvm alias default lts/*
Check it worked
- Check the version
node --version
- Update Node.js
winget upgrade OpenJS.NodeJS.LTS
Check it worked
- Check the version
node --versionOpen a new PowerShell window first.