Here I am going to show you how to install zip version of node.js, not Windows installer (msi).
Node.js 12.18.3, Windows 10 64 Bit OS
1. Download node.js binary(.zip) depending on your Windows is 32 or 64 bit OS from URL https://nodejs.org/en/download/.
2. Extract the downloaded zip folder into
C:\ drive or any other drive or folder as per your convenience.
npm/bin folder to environment variable path respectively as shown in the below figures.
Finally edit Path or PATH variable and add above two variables to the path. Something similar to below
If you are on Windows OS 10 then add above variable one by one as a separate row.
4. Open command prompt and check the version of the node and npm. So it means your node.js installation was successful.
5. Optionally if you want you can update node.js to latest version. On a command prompt execute
npm install -g npm to update npm to the latest version.
If you are facing any error (
Refusing to delete npm.cmd: is outside ...) during update to npm latest version then you can use command
npm install -g --force gatsby-cli.
That’s all. Thanks for reading.