𝗠𝗮𝗻𝗮𝗴𝗲 𝗠𝘂𝗹𝘁𝗶𝗽𝗹𝗲 𝗡𝗼𝗱𝗲 𝗝𝗦 𝗩𝗲𝗿𝘀𝗶𝗼𝗻𝘀

You need different Node versions for different projects. Follow these steps to set them up.

Open your terminal to set the version.

For Bash: export PATH=/c/Users/YourName/node/node-14.17.3:$PATH

For CMD: set PATH=C:\Users\YourName\node\node-14.17.3;%PATH%

For PowerShell: $env:PATH = "C:\Users\YourName\node\node-14.17.3;" + $env:PATH

Check the version: npm -v

This change only works for the active terminal.

Use a script to automate this. Create a file with these lines for Windows:

@echo off SETLOCAL set "NODE_PATH=C:\Users%USERNAME%\node\node-14.17.3" set "PATH=%NODE_PATH%;%NODE_PATH%\node_modules\npm\bin;%PATH%" node -v cmd /k

Source: https://dev.to/amilkar/trabajando-con-diferentes-versiones-de-node-43c