1@echo off 2 3setlocal 4title Install Additional Tools for Node.js 5 6cls 7 8echo ==================================================== 9echo Tools for Node.js Native Modules Installation Script 10echo ==================================================== 11echo. 12echo This script will install Python and the Visual Studio Build Tools, necessary 13echo to compile Node.js native modules. Note that Chocolatey and required Windows 14echo updates will also be installed. 15echo. 16echo This will require about 3 GiB of free disk space, plus any space necessary to 17echo install Windows updates. This will take a while to run. 18echo. 19echo Please close all open programs for the duration of the installation. If the 20echo installation fails, please ensure Windows is fully updated, reboot your 21echo computer and try to run this again. This script can be found in the 22echo Start menu under Node.js. 23echo. 24echo You can close this window to stop now. Detailed instructions to install these 25echo tools manually are available at https://github.com/nodejs/node-gyp#on-windows 26echo. 27pause 28 29cls 30 31REM Adapted from https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/79bbe5bdc4867088b3e074f9610932f8e4e192c2/README.md#legal 32echo Using this script downloads third party software 33echo ------------------------------------------------ 34echo This script will direct to Chocolatey to install packages. By using 35echo Chocolatey to install a package, you are accepting the license for the 36echo application, executable(s), or other artifacts delivered to your machine as a 37echo result of a Chocolatey install. This acceptance occurs whether you know the 38echo license terms or not. Read and understand the license terms of the packages 39echo being installed and their dependencies prior to installation: 40echo - https://chocolatey.org/packages/chocolatey 41echo - https://chocolatey.org/packages/python 42echo - https://chocolatey.org/packages/visualstudio2019-workload-vctools 43echo. 44echo This script is provided AS-IS without any warranties of any kind 45echo ---------------------------------------------------------------- 46echo Chocolatey has implemented security safeguards in their process to help 47echo protect the community from malicious or pirated software, but any use of this 48echo script is at your own risk. Please read the Chocolatey's legal terms of use 49echo as well as how the community repository for Chocolatey.org is maintained. 50echo. 51pause 52 53cls 54 55"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); choco upgrade -y python visualstudio2019-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs 56