xcode-select: error updating js package

Asked 2 years ago, Updated 2 years ago, 38 views

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

The Mac is trying to update the package via yarn, and you get this message. This is an error that occurs while installing node-gyp. How do I solve this?

xcode yarnpkg

2022-09-22 14:21

1 Answers

Here Reviewed and resolved.

sudoxcode-select -s/Applications/Xcode.app/Contents/Developer makes it work.

XCODE must be installed in /Applications before this command can be entered.


2022-09-22 14:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.