From d0d67c67c01b663b23abd3c2926e46bd9b1c3f60 Mon Sep 17 00:00:00 2001 From: "Pooja D.P" Date: Mon, 19 Oct 2020 22:27:32 +0400 Subject: [PATCH] doc: add Installing Node.js header in BUILDING.md PR-URL: https://github.com/nodejs/node/pull/35710 Reviewed-By: Richard Lau Reviewed-By: Rich Trott --- BUILDING.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index 17ce593a9dc8bb..b7be93fde6f6dd 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -24,6 +24,7 @@ file a new issue. * [Unix prerequisites](#unix-prerequisites) * [macOS prerequisites](#macos-prerequisites) * [Building Node.js](#building-nodejs-1) + * [Installing Node.js](#installing-nodejs) * [Running Tests](#running-tests) * [Running Coverage](#running-coverage) * [Building the documentation](#building-the-documentation) @@ -299,6 +300,14 @@ project's root directory. $ sudo ./tools/macos-firewall.sh ``` +#### Installing Node.js + +To install this version of Node.js into a system directory: + +```bash +[sudo] make install +``` + #### Running Tests To verify the build: @@ -458,12 +467,6 @@ To test if Node.js was built correctly: ./node -e "console.log('Hello from Node.js ' + process.version)" ``` -To install this version of Node.js into a system directory: - -```bash -[sudo] make install -``` - #### Building a debug build If you run into an issue where the information provided by the JS stack trace