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