How to use older Node.js Version on Windows

Normally, you can have more than one node version on windows but by default latest version will be picked as executable. But at times, there are many applications that need an older version of Node.

On Windows, you need to have NVM package installed to control the Node version. Follow below steps to set the Node version on your Windows box:

  • Install nvm package for Windows from their authorized Github repo here here: https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows
  • CAUTION: When you will install nvm, at times it will remove Node’s executable path from environment variable. So don’t forget to set it back else your node -v command won’t work.
  • Node executable is placed at C:\Program Files\nodejs\node.exe, so set the path accordingly in environment variables.
  • Once NVM package is installed then you can follow below commands to use the Node version:
    • List what versions of Node are installed: nvm ls
    • To install a particular version of node: nvm install <Node version>
    • Select Node version that you would like to use: nvm use <Node version>

Related posts

Leave a Comment