If you are working on multiple Javascript projects, you may require different versions of Node.Js for different projects and managing different versions of Node.js across multiple projects becomes very challenging especially for the Windows Developers.
Nodist is one of the most reliable and lightweight node.js version manager built for the windows. If you are working on multiple projects, Nodist helps you to switch the Node.js versions effortlessly, avoiding conflicts and manual reinstallation headaches.
Why Nodist ?
Lets say you are working on ProjectA which requires nodejs version 14. And you are asked to help on ProjectB which requires NodeJs Version 16.
So without version manager like Nodist, To switch from ProjectA to ProjectB, you would have to uninstall Node.Js 14 & Install Node.js 16 manually everytime you switch the project.
Nodist helps to
- Manage multiple versions of Node.Js
- Allow to switch versions instantly
- Manage npm versions independently
- Uses per-project configuration via .node-version.
How to configure Nodist ?
Step 1: Unintall existing Node.js
If Node.Js is already installed manually then go to control panel and uninstall it. If you have configured any payh variables, remove them too. This will avoid conflicts when Nodist is configured.
Step 2. Install Nodist
- Go to Nodist GitHub page.
- Download the latest version of Nodist
- Run the Installer.
Step 3. Verify Installation
Open command prompt or powershell:
noidst -vIf you see the version that means nodist is installed.
How to use Nodist ?
1. Install a Node.js Version
noidst add 18Or specific version
nodist add 16.17.02. Switch to a Node.js Version Globally.
nodist 16This will set Node.Js 16 globally.
3. Check Which Versions are Installed.
nodist lsOutput:
14.20.0
16.17.0
> 18.12.0 (Current)4. Use the Latest Version of Node.js
nodist latest5. Set Node Version Per-Project
- Go to the root of your Project.
- Create a file .node-version
- Add version you want (For example: 16.17.0)
When you switch to this project folder, nodist will automatically consider Node 16.17.0 version
6. Set Default Version
nodist global 177. Remove Node Version
nodist rm 16