- Download an old NodeJS MSI package. A list of download URIs can be found here: https://chocolatey.org/packages/nodejs.install/
For example, click on
10.36
in the table, click on• tools\chocolateyInstall.ps1 Show
and copy the URI from the shown file.
The URI for 10.36 x64 is http://nodejs.org/dist/v0.10.36/x64/node-v0.10.36-x64.msi.
-
Download the MSI file and open it with 7-Zip (or a similar program). Extract
node.exe
to{your-project-folder}\old-node
-
Download either
start-old-node.ps1
,start-old-node.bat
orstart-old-node-ps.bat
from this Gist and place it into your project folder. The differences are as follows:
start-old-node-ps.bat
(recommended): Batch script which starts a PowerShell shell. It can be started by a simple double-click in Explorer.start-old-node.ps1
: PowerShell script which starts a PowerShell shell. It must be started by right-clicking and selcetingRun with PowerShell
in Explorer.start-old-node.bat
: Batch script which starts a CMD shell. It can be started by a simple double-click in Explorer.
-
Whenever you want to use the old Node.js version, simply open a shell by using one of the scripts outlined above and do what you would normally do.
-
If you would like to test the behavior, you can execute
node --version
.