Go to the official website to download and download the corresponding version
Official site: Download | Node.js (nodejs.org)
It is recommended to download the msi version directly (msi will automatically configure environment variables)
After downloading, double-click to install
This installation automatically creates the environment variable
verify installation
bring up terminal
win + R
Enter cmd and click OK
cmd
Enter node -v and npm -v respectively
node -v
npm -v