You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Build with a specific ICU](#build-with-a-specific-icu)
47
+
*[Unix/macOS](#unixmacos-2)
48
+
*[Windows](#windows-3)
43
49
*[Building Node.js with FIPS-compliant OpenSSL](#building-nodejs-with-fips-compliant-openssl)
44
50
*[Building Node.js with external core modules](#building-nodejs-with-external-core-modules)
45
-
*[Unix/macOS](#unixmacos-4)
51
+
*[Unix/macOS](#unixmacos-3)
46
52
*[Windows](#windows-4)
47
53
*[Note for downstream distributors of Node.js](#note-for-downstream-distributors-of-nodejs)
48
54
@@ -215,34 +221,58 @@ Consult previous versions of this document for older versions of Node.js:
215
221
216
222
## Building Node.js on supported platforms
217
223
218
-
The [bootstrapping guide](https://github.com/nodejs/node/blob/master/tools/bootstrap/README.md)
219
-
explains how to install all prerequisites.
224
+
### Note about Python 2 and Python 3
220
225
221
-
### Unix/macOS
226
+
The Node.js project uses Python as part of its build process and has
227
+
historically only been Python 2 compatible.
222
228
223
-
#### Prerequisites
229
+
Python 2 will reach its _end-of-life_ at the end of 2019 at which point the
230
+
interpreter will cease receiving updates. See https://python3statement.org/
231
+
for more information.
232
+
233
+
The Node.js project is in the process of transitioning its Python code to
234
+
Python 3 compatibility. Installing both versions of Python while building
235
+
and testing Node.js allows developers and end users to test, benchmark,
236
+
and debug Node.js running on both versions to ensure a smooth and complete
237
+
transition before the year-end deadline.
238
+
239
+
### Unix and macOS
240
+
241
+
#### Unix prerequisites
224
242
225
243
*`gcc` and `g++` >= 6.3 or newer, or
226
-
* macOS: Xcode Command Line Tools >= 8
227
-
* Python 2.7
228
-
* Python 2.7 end of life is in 2019 so a transition to Python 3 is underway.
229
-
* Python 3.5, 3.6, and 3.7 are experimental.
230
244
* GNU Make 3.81 or newer
245
+
* Python (see note above)
246
+
* Python 2.7
247
+
* Python 3.5, 3.6, and 3.7 are experimental.
248
+
249
+
Installation via Linux package manager can be achieved with:
* The "Desktop development with C++" workload from
@@ -476,17 +508,58 @@ Prerequisites:
476
508
If not installed in the default location, it needs to be manually added
477
509
to `PATH`. A build with the `openssl-no-asm` option does not need this, nor
478
510
does a build targeting ARM64 Windows.
479
-
***Optional** (to build the MSI): the [WiX Toolset v3.11](http://wixtoolset.org/releases/)
480
-
and the [Wix Toolset Visual Studio 2017 Extension](https://marketplace.visualstudio.com/items?itemName=RobMensching.WixToolsetVisualStudio2017Extension).
481
-
***Optional** Requirements for compiling for Windows 10 on ARM (ARM64):
482
-
* ARM64 Windows build machine
483
-
* Due to a GYP limitation, this is required to run compiled code
484
-
generation tools (like V8's builtins and mksnapshot tools)
485
-
* Visual Studio 15.9.0 or newer
486
-
* Visual Studio optional components
487
-
* Visual C++ compilers and libraries for ARM64
488
-
* Visual C++ ATL for ARM64
489
-
* Windows 10 SDK 10.0.17763.0 or newer
511
+
512
+
Optional requirements to build the MSI installer package:
513
+
514
+
* The [WiX Toolset v3.11](http://wixtoolset.org/releases/) and the
515
+
[Wix Toolset Visual Studio 2017 Extension](https://marketplace.visualstudio.com/items?itemName=RobMensching.WixToolsetVisualStudio2017Extension).
516
+
517
+
Optional requirements for compiling for Windows 10 on ARM (ARM64):
518
+
519
+
* ARM64 Windows build machine
520
+
* Due to a GYP limitation, this is required to run compiled code
521
+
generation tools (like V8's builtins and mksnapshot tools)
522
+
* Visual Studio 15.9.0 or newer
523
+
* Visual Studio optional components
524
+
* Visual C++ compilers and libraries for ARM64
525
+
* Visual C++ ATL for ARM64
526
+
* Windows 10 SDK 10.0.17763.0 or newer
527
+
528
+
##### Option 2: Automated install with Boxstarter
529
+
<aname="boxstarter"></a>
530
+
531
+
A [Boxstarter](http://boxstarter.org/) script can be used for easy setup of
532
+
Windows systems with all the required prerequisites for Node.js development.
533
+
This script will install the following [Chocolatey](https://chocolatey.org/)
534
+
packages:
535
+
536
+
*[Git for Windows](https://chocolatey.org/packages/git) with the `git` and
537
+
Unix tools added to the `PATH`.
538
+
*[Python 3.x](https://chocolatey.org/packages/python) and
*[Visual Studio 2017 Build Tools](https://chocolatey.org/packages/visualstudio2017buildtools)
541
+
with [Visual C++ workload](https://chocolatey.org/packages/visualstudio2017-workload-vctools)
[Boxstarter WebLauncher](http://boxstarter.org/WebLauncher), open
[Visual Studio 2017 Build Tools]: https://chocolatey.org/packages/visualstudio2017buildtools
66
-
[Visual C++ workload]: https://chocolatey.org/packages/visualstudio2017-workload-vctools
0 commit comments