- Open a command prompt as an administrator.
- Run the following command to install Chocolatey:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
- Close and reopen the command prompt to ensure choco is on the PATH.
- Run the following command to install Node.js using Chocolatey:
choco install nodejs