From 842505ad6c514601f0770865c390974ab1e0edd7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 10 Nov 2019 11:18:54 +0100 Subject: [PATCH 1/3] doc: macOS Catalina add two commands These steps have proven effective for some users. --- macOS_Catalina.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macOS_Catalina.md b/macOS_Catalina.md index 848c2c5c84..bb2205a7df 100644 --- a/macOS_Catalina.md +++ b/macOS_Catalina.md @@ -66,4 +66,7 @@ There are two main ways to install `node-gyp` on macOS: 1. `sudo rm -rf $(xcode-select -print-path)` # Enter root password. No output is normal. 2. `xcode-select --install` 3. If the [_acid test_](#The-acid-test) still does _not_ pass then... -4. Add a comment to https://github.com/nodejs/node-gyp/issues/1927 so we can improve. +4. npm explore npm -g -- npm install node-gyp@latest +5. npm explore npm -g -- npm explore npm-lifecycle -- npm install node-gyp@latest +6. If the [_acid test_](#The-acid-test) still does _not_ pass then... +7. Add a comment to https://github.com/nodejs/node-gyp/issues/1927 so we can improve. From be67de4de5b38025fc83cf4ea83635999dcf283c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 10 Nov 2019 11:24:39 +0100 Subject: [PATCH 2/3] fixup! Surrounded commands with backticks --- macOS_Catalina.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macOS_Catalina.md b/macOS_Catalina.md index bb2205a7df..7c369987db 100644 --- a/macOS_Catalina.md +++ b/macOS_Catalina.md @@ -66,7 +66,7 @@ There are two main ways to install `node-gyp` on macOS: 1. `sudo rm -rf $(xcode-select -print-path)` # Enter root password. No output is normal. 2. `xcode-select --install` 3. If the [_acid test_](#The-acid-test) still does _not_ pass then... -4. npm explore npm -g -- npm install node-gyp@latest -5. npm explore npm -g -- npm explore npm-lifecycle -- npm install node-gyp@latest -6. If the [_acid test_](#The-acid-test) still does _not_ pass then... +4. `npm explore npm -g -- npm install node-gyp@latest` +5. `npm explore npm -g -- npm explore npm-lifecycle -- npm install node-gyp@latest` +6. If the _acid test_ still does _not_ pass then... 7. Add a comment to https://github.com/nodejs/node-gyp/issues/1927 so we can improve. From 69ddea320e99aaf0ba5139d320d6f42c6f6c1bda Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 11 Nov 2019 12:48:21 +0100 Subject: [PATCH 3/3] fixup! Set location of Xcode tools if it is empty --- macOS_Catalina.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macOS_Catalina.md b/macOS_Catalina.md index 7c369987db..5f02face57 100644 --- a/macOS_Catalina.md +++ b/macOS_Catalina.md @@ -38,7 +38,9 @@ There are two main ways to install `node-gyp` on macOS: ### Installing `node-gyp` using the full Xcode 1. `xcodebuild -version` should show `Xcode 11.1` or later. * If not, then install/upgrade Xcode from the App Store app. -2. Open the Xcode app and allow it to do an essential install of the most recent compiler tools. +2. Open the Xcode app and... + * Under __Preferences > Locations__ select the tools if their location is empty. + * Allow Xcode app to do an essential install of the most recent compiler tools. 3. Once all installations are _complete_, quit out of Xcode. 4. `sudo xcodebuild -license accept` # If you agree with the licensing terms. 5. `softwareupdate -l` # No listing is a good sign.