The mise tool can be used to update the default version of Node.js and npm.
Use Node.js 20x
mise use --global node@20
Use Node.js 18x
mise use --global node@18
Use Node.js 17
mise use --global node@17
If you want to set Node.js version forever, please use please create .mise.toml
file in your home directory with the following content:
[tools]
node = ['20']
Please, let us know if some essentials are missing. Join our Discord Community to discuss new ideas and features.