Windows

Windows also has a package manager. Just like Mac, the Windows package manager does not come preinstalled. The package manager for Windows is named Chocolatey and can be found at https://chocolatey.org:

To install Chocolatey, open a Command Prompt (cmd.exe) as administrator and execute the following command:

@"%SystemRoot%System32WindowsPowerShellv1.0powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateyin"

After the Chocolatey installation has finished, you may need to restart the command window before you can use it. Restart the Command Prompt as an administrator, and then execute the following commands to install Node on windows using the Chocolatey package manager:

C:>choco install nodejs
C:>refreshenv

Once you've executed the first command, you will be prompted to execute a script. You will need to agree to run the script to install Node.

To upgrade Node using Chocolatey, execute the following command:

C:>choco upgrade nodejs

You may need to agree to run the installation script. If prompted, simply hit the Y key and press Enter. You now have the latest version of Node.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.27.68