From 20aa0b44f7114814747edb9c2b9690ca19681be0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 10 Nov 2019 11:18:54 +0100 Subject: [PATCH] doc: macOS Catalina add two commands These steps have proven effective for some users. PR-URL: https://github.com/nodejs/node-gyp/pull/1962 Reviewed-By: Rod Vagg --- macOS_Catalina.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/macOS_Catalina.md b/macOS_Catalina.md index 848c2c5c84..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. @@ -66,4 +68,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_ still does _not_ pass then... +7. Add a comment to https://github.com/nodejs/node-gyp/issues/1927 so we can improve.