Download the installation package first
https://nodejs.org/en/download/
Click to download the appropriate ZIP version
Then extract the folder to any directory
For example, I extracted here: C:\Program Files\nodejs
Then create a new two folder in this directory
Node-cache
Node-global
This is the installation directory used to put NPM global modules, or it can be placed elsewhere.
Configuring Environment variables
Create a new system variable
Variable name: Node_home variable Value (your installation directory): C:\Program Files\nodejs
Edit Path variable
Two new entries
%node_home%%node_home%\node-global
Open cmd, if the execution of the error, try to change the administrator to run
Run the following command, where the address is also the installation directory
" C:\Program Files\nodejs\node-global " "C:\Program files\nodejs\node-cache"
Test, run the following command to have the version appear
Node-V
Install Nodejs under Windows