Installing Multiple Versions of Node.js on Your System Using Volta


Conflicting node version is common among users, specially if you work with multiple projects and with multiple stack.
The error might looks like this

My favourite choice when managing multiple NODE on a system is VOLTA
Download Volta from the website
Install VOLTA Check if volta is installed on the system
volta -v
Install node using VOLTA
volta install node
This will install the latest LTS version of Node
To install other version of node, just add @version at the end of node directive
volta install node@14
This will install latest version of node 14
Switch the other Node version using VOLTA
volta install node
This is exactly the same as installing NODE using VOLTA & this will switch to latest version of node
&
volta install node@14
This will switch the node version to 14 The only difference is, if the version is already available on the system, > VOLTA will switch NODE version immediately

Learn how to install Frappe ERPNext on macOS with this comprehensive guide, including steps for setting up virtual environments, MariaDB, Redis, and Node.js