/InstallSelectableItems: Choose which selectable item(s) to be installed./ForceRestart: Always restart the system after installation./CustomInstallPath: Set Custom install location./CreateAdminFile: Specifies the location to create a control file that can then be used./AdminFile: Specifies the installation control file.If you run windows-build-tools with -vs2015, these parameters are available: Here's quick example (note the double quotes): npm -vcc-build-tools-parameters='' install -global windows-build-tools Supply parameters to windows-build-tools as a JSON array. This tool does notĬheck if the parameters make sense - passing incorrect parameters might break the whole You can pass additional parameters directly to the VCC Build Tools installer. Supplying Parameters to the VCC Build Tools Only available with the 2017 and newer build tools and Node.js v12 and up. -include-arm64-tools: Include the optional Visual Studio components required to build binaries for ARM64 Windows.-dry-run-only: Don't actually do anything, just print what the script would have done.-vs2015: Install the Visual Studio 2015 Build Tools instead of the Visual Studio 2017 ones.-silent: The script will not output any information.See below for more detailed usage instructions. -vcc-build-tools-parameters: Specifies additional parameters for the Visual C++ Build Tools 2015.-sockets: Specifies the number of http sockets to use at once (this controls concurrency).-resume: By default, windows-build-tools will resume aborted downloads.-strict-ssl: Enables "Strict SSL" mode.Equal to setting the environment variable DEBUG to *. -debug: Be extra verbose in the logger output.You can alternatively set a PROXY environment variable. You can alternatively set a PYTHON_MIRROR environment variable. -python-mirror: Use a given mirror to download Python (like -python_mirror=).-offline-installers: Path to a folder with already downloaded installers.Usage npm install -global windows-build-tools This module is capable of installing either the build tools from Visual Studio 2017 or Visualīy default, this tool will install the 2017 build tools. If you see anything that indicates otherwise, pleaseįile a bug. Visual Studio, C++ Build Tools, or Python. NET Framework 4.5.1 (Currently not installed automatically by this package)īoth installations are conflict-free, meaning that they do not mess with existing installations of If not already installed, it will also install Python 2.7, configuring your machine and npm appropriately. These tools are required to compile popular native modules. Or, if you are using Yarn: yarn global add windows-build-toolsĪfter installation, npm will automatically execute this module, which downloads and installs VisualĬ++ Build Tools, provided free of charge for most users by Microsoft (as part of Visual Studio Community, please consult the license to determine whether or not you're eligible). Start PowerShell as Administrator and run: npm install -global windows-build-tools On Windows? Want to compile native Node modules? Install the build tools with this one-liner.
0 Comments
Leave a Reply. |