0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/tools/bootstrap
cclauss 6df9f84f61 tools: windows_boxstarter "choco install python -y" for Python 3
PR-URL: https://github.com/nodejs/node/pull/26424
Refs: https://github.com/nodejs/node/issues/25789#issuecomment-469238697
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2019-03-26 17:59:16 -04:00
..
README.md tools: windows_boxstarter "choco install python -y" for Python 3 2019-03-26 17:59:16 -04:00
windows_boxstarter tools: windows_boxstarter "choco install python -y" for Python 3 2019-03-26 17:59:16 -04:00

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:

To install Node.js prerequisites using Boxstarter WebLauncher, just open this link with Internet Explorer or Edge browser on the target machine.

Alternatively, you can use PowerShell. Run those commands from an elevated PowerShell terminal:

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

Entire installation will take up about 10 GB of disk space.

Why install two different versions of Python?

Python 2 will reach its end-of-life at the end of 2019. Afterwards, the interpreter will not get updates — no bugfixes, no security fixes, nothing. In the interim, the Python ecosystem is abandoning 2.7 support. https://python3statement.org/ In order to remain safe and current the Node.js community is transitioning its Python code to Python 3. Having both versions of Python in this bootstrap will allow developers and end users to test, benchmark, and debug Node.js running on both versions to ensure a smooth and complete transition before the yearend deadline.

Linux

For building Node.js on Linux, following packages are required (note, that this can vary from distribution to distribution):

  • git
  • python
  • gcc-c++ or g++
  • make

To bootstrap Node.js on Linux, run in terminal:

  • OpenSUSE: sudo zypper install git python gcc-c++ make
  • Fedora: sudo dnf install git python gcc-c++ make
  • Ubuntu, Debian: sudo apt-get install git python g++ make

macOS

To install required tools on macOS, run in terminal:

xcode-select --install