-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: add Boxstarter script #17046
Closed
Closed
tools: add Boxstarter script #17046
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Node.js Bootstrapping Guide | ||
|
||
## Windows | ||
|
||
A [Boxstarter][] script can be used for easy setup of Windows systems with all | ||
the required prerequisites for Node.js development. This script will install | ||
the following [Chocolatey] packages: | ||
* [Git for Windows][] with the `git` and Unix tools added to the `PATH` | ||
* [Python 2.x][] | ||
* [Visual Studio 2017 Build Tools][] with [Visual C++ workload][] | ||
|
||
To install Node.js prerequisites using [Boxstarter WebLauncher][], just open | ||
[this link](http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/nodejs/node/master/tools/bootstrap/windows_boxstarter) | ||
with Internet Explorer or Edge browser on the target machine. | ||
|
||
Alternatively, you can use PowerShell. Run those commands from an elevated | ||
PowerShell terminal: | ||
```console | ||
Set-ExecutionPolicy Unrestricted -Force | ||
iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1')) | ||
get-boxstarter -Force | ||
Install-BoxstarterPackage https://raw.githubusercontent.com/nodejs/node/master/tools/bootstrap/windows_boxstarter -DisableReboots | ||
``` | ||
|
||
[Boxstarter]: http://boxstarter.org/ | ||
[Boxstarter WebLauncher]: http://boxstarter.org/WebLauncher | ||
[Chocolatey]: https://chocolatey.org/ | ||
[Git for Windows]: https://chocolatey.org/packages/git | ||
[Python 2.x]: https://chocolatey.org/packages/python2 | ||
[Visual Studio 2017 Build Tools]: https://chocolatey.org/packages/visualstudio2017buildtools | ||
[Visual C++ workload]: https://chocolatey.org/packages/visualstudio2017-workload-vctools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Boxstarter (http://boxstarter.org/) script for Node.js prerequisites | ||
# | ||
# To install either open this link in IE or Edge: | ||
# http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/nodejs/node/master/tools/bootstrap/windows_boxstarter | ||
# | ||
# Or run those commands in an elevated Powershell terminal: | ||
# iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1')) | ||
# get-boxstarter -Force | ||
# Install-BoxstarterPackage https://raw.githubusercontent.com/nodejs/node/master/tools/bootstrap/windows_boxstarter -DisableReboots | ||
# | ||
# For more detail see | ||
# https://github.com/nodejs/node/blob/master/tools/bootstrap/README.md | ||
# | ||
|
||
# Git and Unix tools will be added to the PATH | ||
choco install git -params /GitAndUnixToolsOnPath -y | ||
choco install python2 -y | ||
|
||
# Installs VS 2017 Build Tools | ||
choco install visualstudio2017buildtools -y | ||
choco install visualstudio2017-workload-vctools -y |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not move this to the top of the list and drop the
#Windows
off the end? That way it'll work when we add other platforms.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't understand what you mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this line to L83, and change it to: