Skip to content

Commit 54f97cd

Browse files
valera-rozuvanrvagg
authored andcommitted
doc: add cmd to reset xcode-select to initial state
PR-URL: #2235 Reviewed-By: Christian Clauss <[email protected]>
1 parent b9e3ad2 commit 54f97cd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

macOS_Catalina.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,13 @@ There are three ways to install the Xcode libraries `node-gyp` needs on macOS. P
8989
### I did all that and the acid test still does not pass :-(
9090
1. `sudo rm -rf $(xcode-select -print-path)` # Enter root password. No output is normal.
9191
2. `sudo rm -rf /Library/Developer/CommandLineTools` # Enter root password.
92-
2. `xcode-select --install`
93-
3. If the [_acid test_ steps above](#The-acid-test) still does _not_ pass then...
94-
4. `npm explore npm -g -- npm install node-gyp@latest`
95-
5. `npm explore npm -g -- npm explore npm-lifecycle -- npm install node-gyp@latest`
96-
6. If the _acid test_ still does _not_ pass then...
97-
7. Add a comment to https://github.com/nodejs/node-gyp/issues/1927 so we can improve.
92+
3. `xcode-select --reset`
93+
4. `xcode-select --install`
94+
5. If the [_acid test_ steps above](#The-acid-test) still does _not_ pass then...
95+
6. `npm explore npm -g -- npm install node-gyp@latest`
96+
7. `npm explore npm -g -- npm explore npm-lifecycle -- npm install node-gyp@latest`
97+
8. If the _acid test_ still does _not_ pass then...
98+
9. Add a comment to https://github.com/nodejs/node-gyp/issues/1927 so we can improve.
9899

99100
Lessons learned from:
100101
* https://github.com/nodejs/node-gyp/issues/1779

0 commit comments

Comments
 (0)