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

Closed
davis opened this Issue Jan 28, 2015 · 67 comments

Comments

Projects
None yet
@davis

davis commented Jan 28, 2015

EDITED FOR PEOPLE JUST GETTING HERE

See #569 (comment) and #569 (comment), the warning can just be ignored. Command Line Tools works fine, you do not need the full Xcode.

See here and here for more info.

Fix:

xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools

then just ignore the warning.

If your install is failing

There will be other errors nearer the end, almost certainly issues with the module you're trying to install or a dependency. Please report the error to that project.

If that doesn't work

Are you seeing this when you run node-gyp rebuild or npm install? If not then it's nothing to do with node-gyp, raise a bug with the project you're using.

@alejandroiglesias

This comment has been minimized.

Show comment Hide comment
@alejandroiglesias

alejandroiglesias Apr 9, 2015

I'm looking for the same answer.

I'm looking for the same answer.

@davis

This comment has been minimized.

Show comment Hide comment
@davis

davis Apr 13, 2015

@alejandroiglesias, try this: download Xcode from the app store, open it and accept the license/terms agreement, and try whatever you were doing again.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

davis commented Apr 13, 2015

@alejandroiglesias, try this: download Xcode from the app store, open it and accept the license/terms agreement, and try whatever you were doing again.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@jfmercer

This comment has been minimized.

Show comment Hide comment
@jfmercer

jfmercer Apr 21, 2015

This fixed it for me:

  1. Install Xcode
  2. Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

See this explanation on SO.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

jfmercer commented Apr 21, 2015

This fixed it for me:

  1. Install Xcode
  2. Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

See this explanation on SO.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@nitinnain

This comment has been minimized.

Show comment Hide comment
@nitinnain

nitinnain May 21, 2015

Same answer as @jfmercer . But if you installed XCode beta, use this command instead:
sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer

Same answer as @jfmercer . But if you installed XCode beta, use this command instead:
sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer

@Fishrock123 Fishrock123 added the OS X label Aug 22, 2015

@HectorLS

This comment has been minimized.

Show comment Hide comment
@HectorLS

HectorLS Sep 1, 2015

@nitinnain if i use your command i get
xcode-select: error: invalid developer directory '/Applications/Xcode-Beta.app/Contents/Developer'
i have Xcode7 beta 6 :S

HectorLS commented Sep 1, 2015

@nitinnain if i use your command i get
xcode-select: error: invalid developer directory '/Applications/Xcode-Beta.app/Contents/Developer'
i have Xcode7 beta 6 :S

@dbranchini

This comment has been minimized.

Show comment Hide comment
@dbranchini

dbranchini Sep 15, 2015

@tibicenas @nitinnain - same here:
xcode-select: error: invalid developer directory '/Applications/Xcode-Beta.app/Contents/Developer'

@tibicenas @nitinnain - same here:
xcode-select: error: invalid developer directory '/Applications/Xcode-Beta.app/Contents/Developer'

@davis

This comment has been minimized.

Show comment Hide comment
@davis

davis Sep 15, 2015

@tibicenas @dbranchini did either of you try my suggestion?

davis commented Sep 15, 2015

@tibicenas @dbranchini did either of you try my suggestion?

@HectorLS

This comment has been minimized.

Show comment Hide comment
@HectorLS

HectorLS Sep 17, 2015

@davis finally i uninstalled Xcode and re-install and then doing the xcode-select -switch works.. anyway its a weird issue that should be fixed in the next patch

@davis finally i uninstalled Xcode and re-install and then doing the xcode-select -switch works.. anyway its a weird issue that should be fixed in the next patch

@rachellji

This comment has been minimized.

Show comment Hide comment
@rachellji

rachellji Oct 5, 2015

@davis I tried your suggestion, it worked. thanks!

@davis I tried your suggestion, it worked. thanks!

@wmertens

This comment has been minimized.

Show comment Hide comment
@wmertens

wmertens Nov 12, 2015

Is there no way to not use xcodebuild? I don't want to waste 6GB of disk on pointless crap


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

wmertens commented Nov 12, 2015

Is there no way to not use xcodebuild? I don't want to waste 6GB of disk on pointless crap


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@micky2be

This comment has been minimized.

Show comment Hide comment
@micky2be

micky2be Dec 2, 2015

Agreed with @wmertens

micky2be commented Dec 2, 2015

Agreed with @wmertens

@bnoordhuis

This comment has been minimized.

Show comment Hide comment
@bnoordhuis

bnoordhuis Dec 2, 2015

Member

You can maybe circumvent the xcode-specific logic by passing -DOS=mac -f make-linux to node-gyp (check the source) but it's not supported. I'll close the issue.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

Member

bnoordhuis commented Dec 2, 2015

You can maybe circumvent the xcode-specific logic by passing -DOS=mac -f make-linux to node-gyp (check the source) but it's not supported. I'll close the issue.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@bnoordhuis bnoordhuis closed this Dec 2, 2015

@firewoof

This comment has been minimized.

Show comment Hide comment
@firewoof

firewoof Jan 9, 2016

But if you installed XCode beta, use this command instead:
sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer
hah, it's worked!


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

firewoof commented Jan 9, 2016

But if you installed XCode beta, use this command instead:
sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer
hah, it's worked!


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@turibbio

This comment has been minimized.

Show comment Hide comment
@turibbio

turibbio Jan 27, 2016

XCode2:
sudo xcode-select -s /Applications/Xcode\ 2.app/Contents/Developer

Pay attention to the "" to escape the space


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

turibbio commented Jan 27, 2016

XCode2:
sudo xcode-select -s /Applications/Xcode\ 2.app/Contents/Developer

Pay attention to the "" to escape the space


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@jesstomo12

This comment has been minimized.

Show comment Hide comment
@jesstomo12

jesstomo12 Feb 10, 2016

im having this problem what is the password when you do sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

im having this problem what is the password when you do sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

@davis

This comment has been minimized.

Show comment Hide comment
@davis

davis Feb 10, 2016

@jesstomo12 your sudo password

davis commented Feb 10, 2016

@jesstomo12 your sudo password

@dharmanibc

This comment has been minimized.

Show comment Hide comment
@dharmanibc

dharmanibc Mar 14, 2016

I have the same error: "xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'"
I also tried: 1. Install Xcode
2. Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
or Run sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Nothing works. How I know which version of Xcode is loaded?

I have the same error: "xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'"
I also tried: 1. Install Xcode
2. Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
or Run sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Nothing works. How I know which version of Xcode is loaded?

@bnoordhuis

This comment has been minimized.

Show comment Hide comment
@bnoordhuis

bnoordhuis Mar 14, 2016

Member

@dharmanibc xcode-select -print-path

Member

bnoordhuis commented Mar 14, 2016

@dharmanibc xcode-select -print-path

@dharmanibc

This comment has been minimized.

Show comment Hide comment
@dharmanibc

dharmanibc Mar 14, 2016

Thanks! The problem is solved now. Actually, this was an map-error on OS X 10.10, as somehow it checks for some module to be available for 10.11 and which is not available for 10.10. So, simply, I ignored the error msg. The fink seems properly installed. Thanks again!

Thanks! The problem is solved now. Actually, this was an map-error on OS X 10.10, as somehow it checks for some module to be available for 10.11 and which is not available for 10.10. So, simply, I ignored the error msg. The fink seems properly installed. Thanks again!

@jalghizzi

This comment has been minimized.

Show comment Hide comment
@jalghizzi

jalghizzi Mar 29, 2016

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


This problem happens when xcode-select developer directory was pointing to /Library/Developer/CommandLineTools, when a full regular XCode was required (happens when CLT are installed after XCode)

Solution:

Install Xcode (get it from https://developer.apple.com/xcode/) if you don't have it yet,

Point xcode-select to the Xcode Developer directory using the following command:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Note: Make sure your Xcode app directory is the same as in the address above; most notably, it'll be probably /Applications/Xcode-Beta.app/Contents/Developeror /Applications/Xcode-beta.app/Contents/Developer if you installed beta XCode release instead.

The Source: http://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error/17980786#17980786

jalghizzi commented Mar 29, 2016

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


This problem happens when xcode-select developer directory was pointing to /Library/Developer/CommandLineTools, when a full regular XCode was required (happens when CLT are installed after XCode)

Solution:

Install Xcode (get it from https://developer.apple.com/xcode/) if you don't have it yet,

Point xcode-select to the Xcode Developer directory using the following command:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Note: Make sure your Xcode app directory is the same as in the address above; most notably, it'll be probably /Applications/Xcode-Beta.app/Contents/Developeror /Applications/Xcode-beta.app/Contents/Developer if you installed beta XCode release instead.

The Source: http://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error/17980786#17980786

@zhanglun

This comment has been minimized.

Show comment Hide comment
@zhanglun

zhanglun Jun 18, 2016

I do not want install xcode, it's stupid. How can i do


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

zhanglun commented Jun 18, 2016

I do not want install xcode, it's stupid. How can i do


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@tianshuo

This comment has been minimized.

Show comment Hide comment
@tianshuo

tianshuo Jun 22, 2016

Why should this force an installation of the overbloated xcode instead of xcode command line tools?


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

tianshuo commented Jun 22, 2016

Why should this force an installation of the overbloated xcode instead of xcode command line tools?


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@tianshuo tianshuo referenced this issue in 007pig/plugin-jieba Jun 22, 2016

Closed

Cannot find module './build/Release/nodejieba.node' #1

@rvagg

This comment has been minimized.

Show comment Hide comment
@rvagg

rvagg Jun 22, 2016

Member

I don't think we have any control over the message this prints, it comes out of OSX.

The best resource I've seen on this whole mess is actually from a rails documentation project: http://railsapps.github.io/xcode-command-line-tools.html, it's pretty complete and we'd do well to either link to it or borrow large chunks of it for our own documentation.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

Member

rvagg commented Jun 22, 2016

I don't think we have any control over the message this prints, it comes out of OSX.

The best resource I've seen on this whole mess is actually from a rails documentation project: http://railsapps.github.io/xcode-command-line-tools.html, it's pretty complete and we'd do well to either link to it or borrow large chunks of it for our own documentation.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@sw00

This comment has been minimized.

Show comment Hide comment
@sw00

sw00 Jul 8, 2016

So, I just want to confirm this.

node-gyp has a hard dependency on XCode (the entire IDE) that cannot be fulfilled by CommandLineTools?


EDIT(gibfahn): No, Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

sw00 commented Jul 8, 2016

So, I just want to confirm this.

node-gyp has a hard dependency on XCode (the entire IDE) that cannot be fulfilled by CommandLineTools?


EDIT(gibfahn): No, Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@tianshuo

This comment has been minimized.

Show comment Hide comment
@tianshuo

tianshuo Jul 8, 2016

Yeah, that's whats really strange

tianshuo commented Jul 8, 2016

Yeah, that's whats really strange

@rvagg

This comment has been minimized.

Show comment Hide comment
@rvagg

rvagg Jul 8, 2016

Member

no, this is not correct, the commandline tools should be just fine, it's just a matter of wiring up xcode-select to use them by default I think, some kind of OSX magic I don't know off the top of my head


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

Member

rvagg commented Jul 8, 2016

no, this is not correct, the commandline tools should be just fine, it's just a matter of wiring up xcode-select to use them by default I think, some kind of OSX magic I don't know off the top of my head


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@carmelocolon

This comment has been minimized.

Show comment Hide comment
@carmelocolon

carmelocolon Jul 8, 2016

It Worked! You guys rock. Thanks!

sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

carmelocolon commented Jul 8, 2016

It Worked! You guys rock. Thanks!

sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@emkographics

This comment has been minimized.

Show comment Hide comment
@emkographics

emkographics Jul 13, 2016

The first time it failed for me was because I've attempted to install an older version of sqlite:
npm install sqllight3@3.0.10 --save
I then installed the latest version and it went through just fine, no xcode required:
npm install sqlite3@3.1.4 --save

emkographics commented Jul 13, 2016

The first time it failed for me was because I've attempted to install an older version of sqlite:
npm install sqllight3@3.0.10 --save
I then installed the latest version and it went through just fine, no xcode required:
npm install sqlite3@3.1.4 --save

@syntacticsugar

This comment has been minimized.

Show comment Hide comment
@syntacticsugar

syntacticsugar Aug 11, 2016

I write to confirm @davis ' suggestion, followed by running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer solved it for me.

FYI anyone using a new MacBook or doing a first install of xCode needs to accept the terms/conditions ;)


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

syntacticsugar commented Aug 11, 2016

I write to confirm @davis ' suggestion, followed by running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer solved it for me.

FYI anyone using a new MacBook or doing a first install of xCode needs to accept the terms/conditions ;)


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@davis

This comment has been minimized.

Show comment Hide comment
@davis

davis Aug 11, 2016

@rvagg nice find! I've updated my original post with that link so people who run into this in the future hopefully see that link.

davis commented Aug 11, 2016

@rvagg nice find! I've updated my original post with that link so people who run into this in the future hopefully see that link.

@crazyyi

This comment has been minimized.

Show comment Hide comment
@crazyyi

crazyyi Aug 16, 2016

So there is no way to get around this other than installing a 6GB XCode application? Are you kidding me? I don't see the point here.


EDIT(gibfahn): No, Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

crazyyi commented Aug 16, 2016

So there is no way to get around this other than installing a 6GB XCode application? Are you kidding me? I don't see the point here.


EDIT(gibfahn): No, Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@bnoordhuis

This comment has been minimized.

Show comment Hide comment
@bnoordhuis

bnoordhuis Aug 16, 2016

Member

You can try downloading clang from http://llvm.org/releases/download.html but you'll be on your own, it's not a supported configuration.

Member

bnoordhuis commented Aug 16, 2016

You can try downloading clang from http://llvm.org/releases/download.html but you'll be on your own, it's not a supported configuration.

@chachaxw

This comment has been minimized.

Show comment Hide comment
@chachaxw

chachaxw Sep 15, 2016

Got it, I've solved this problem

Got it, I've solved this problem

@TomCosta

This comment has been minimized.

Show comment Hide comment
@TomCosta

TomCosta Sep 22, 2016

Nice!
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
It works good for me on Mac OS X El Capitan...


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

TomCosta commented Sep 22, 2016

Nice!
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
It works good for me on Mac OS X El Capitan...


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@bergerjac

This comment has been minimized.

Show comment Hide comment
@bergerjac

bergerjac Oct 23, 2016

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


Common Problems:

  • Error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory is a command line tools instance
  • whether or not you installed XCode beta

Here's all the answers from this thread and links compiled into one.

  1. Install Xcode or Xcode-beta
  2. Initiate Spotlight Search and type Xcode (Note whether you see Xcode, Xcode-beta, Xcode-87...)
  3. CMD+enter to open Xcode's directory
  4. Open Xcode and Accept Terms and Conditions
  5. Move Xcode to /Applications directory ← NOT /Users/{user}/Applications
  6. Open Terminal
    • Xcode-beta: sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer
    • Xcode: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    • Other: Get the proper path to your Xcode app. If yours is Xcode-87, then it would be: sudo xcode-select --switch /Applications/Xcode-87.app/Contents/Developer

Tested on

  • Macbook Pro, El Capitan OS X 10.11.6

bergerjac commented Oct 23, 2016

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


Common Problems:

  • Error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory is a command line tools instance
  • whether or not you installed XCode beta

Here's all the answers from this thread and links compiled into one.

  1. Install Xcode or Xcode-beta
  2. Initiate Spotlight Search and type Xcode (Note whether you see Xcode, Xcode-beta, Xcode-87...)
  3. CMD+enter to open Xcode's directory
  4. Open Xcode and Accept Terms and Conditions
  5. Move Xcode to /Applications directory ← NOT /Users/{user}/Applications
  6. Open Terminal
    • Xcode-beta: sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer
    • Xcode: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    • Other: Get the proper path to your Xcode app. If yours is Xcode-87, then it would be: sudo xcode-select --switch /Applications/Xcode-87.app/Contents/Developer

Tested on

  • Macbook Pro, El Capitan OS X 10.11.6

@mlloreda mlloreda referenced this issue in arrayfire/arrayfire Oct 26, 2016

Closed

NVCC does not support Apple Clang version 8.x #1384

@ClashTheBunny ClashTheBunny referenced this issue in material-components/material-components-web Jun 15, 2017

Closed

Build Failure on Node 7.1.0 and 8.1.0 #832

@hkirat hkirat referenced this issue in NativeScript/nativescript-cli Jun 28, 2017

Closed

Getting debug error #2933

@cjcjameson cjcjameson referenced this issue in pivotal-legacy/workstation-setup Jul 24, 2017

Closed

Summary of warnings and errors from recent run-through #133

5 of 7 tasks complete
@sebastianhaberey

This comment has been minimized.

Show comment Hide comment
@sebastianhaberey

sebastianhaberey Jul 29, 2017

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


I agree that it's utterly frustrating to have to install 6GB of XCode. The Ruby on Rails documentation that was linked earlier in this thread states:

You don’t need the full Xcode package to get the Xcode Command Line Tools. You only need the full Xcode package if you are doing development of applications for the Apple operating systems.

That seems like a reasonable approach. Any reasons why this should be different for nodejs? Not flaming but genuinely interested in technical reasons.

sebastianhaberey commented Jul 29, 2017

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


I agree that it's utterly frustrating to have to install 6GB of XCode. The Ruby on Rails documentation that was linked earlier in this thread states:

You don’t need the full Xcode package to get the Xcode Command Line Tools. You only need the full Xcode package if you are doing development of applications for the Apple operating systems.

That seems like a reasonable approach. Any reasons why this should be different for nodejs? Not flaming but genuinely interested in technical reasons.

@bnoordhuis

This comment has been minimized.

Show comment Hide comment
@bnoordhuis

bnoordhuis Jul 29, 2017

Member

@sebastianhaberey Just Command Line Tools works, see #569 (comment).

Member

bnoordhuis commented Jul 29, 2017

@sebastianhaberey Just Command Line Tools works, see #569 (comment).

@sebastianhaberey

This comment has been minimized.

Show comment Hide comment
@sebastianhaberey

sebastianhaberey Jul 29, 2017

@bnoordhuis I actually had the same symptom on my machine - I get the error, but on a closer look everything seemed to work. But then, why the error? Is it true that it's thrown by Xcode and cannot be removed? I believe it leads to people wasting time searching for solutions.


EDIT(gibfahn): See here and here for more info.

sebastianhaberey commented Jul 29, 2017

@bnoordhuis I actually had the same symptom on my machine - I get the error, but on a closer look everything seemed to work. But then, why the error? Is it true that it's thrown by Xcode and cannot be removed? I believe it leads to people wasting time searching for solutions.


EDIT(gibfahn): See here and here for more info.

@bnoordhuis

This comment has been minimized.

Show comment Hide comment
@bnoordhuis

bnoordhuis Jul 29, 2017

Member

The warning is printed by xcode-select, node-gyp doesn't have control over that.

Member

bnoordhuis commented Jul 29, 2017

The warning is printed by xcode-select, node-gyp doesn't have control over that.

@rojasmi1

This comment has been minimized.

Show comment Hide comment
@rojasmi1

rojasmi1 Sep 8, 2017

So I need to install xcode with a 2MB connection just for the sake of installing bcrypt? What a waste of time 👎


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

rojasmi1 commented Sep 8, 2017

So I need to install xcode with a 2MB connection just for the sake of installing bcrypt? What a waste of time 👎


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@gibfahn

This comment has been minimized.

Show comment Hide comment
@gibfahn

gibfahn Sep 8, 2017

Member

So I need to install xcode with a 2MB connection just for the sake of installing bcrypt? What a waste of time 👎

You need the Xcode command line tools (much smaller than full Xcode) yeah. You need a C++ compiler to compile C++. If you'd like bcrypt to include prebuilt binaries then take it up with the module authors.

Member

gibfahn commented Sep 8, 2017

So I need to install xcode with a 2MB connection just for the sake of installing bcrypt? What a waste of time 👎

You need the Xcode command line tools (much smaller than full Xcode) yeah. You need a C++ compiler to compile C++. If you'd like bcrypt to include prebuilt binaries then take it up with the module authors.

@easingthemes

This comment has been minimized.

Show comment Hide comment
@easingthemes

easingthemes Sep 15, 2017

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


You just need to configure xcode after installation:
Open your xcode > go to preferences > select locations tab > select command line tools > set latest xcode version.

xcode-config

easingthemes commented Sep 15, 2017

EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.


You just need to configure xcode after installation:
Open your xcode > go to preferences > select locations tab > select command line tools > set latest xcode version.

xcode-config

@frankchau93

This comment has been minimized.

Show comment Hide comment
@frankchau93

frankchau93 Sep 21, 2017

@easingthemes thank you so much, that worked!

@easingthemes thank you so much, that worked!

@bao3

This comment has been minimized.

Show comment Hide comment
@bao3

bao3 Oct 15, 2017

@easingthemes it worked , thanks.

bao3 commented Oct 15, 2017

@easingthemes it worked , thanks.

@gregory

This comment has been minimized.

Show comment Hide comment
@gregory

gregory Oct 28, 2017

xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

So basically everyone seems ok with installing a 5G file just to get xcode, for the sole purpose of getting node-gyp to compile (even though gcc is already installed through the command line tool)

can't believe this still happening late 2017.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

gregory commented Oct 28, 2017

xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

So basically everyone seems ok with installing a 5G file just to get xcode, for the sole purpose of getting node-gyp to compile (even though gcc is already installed through the command line tool)

can't believe this still happening late 2017.


EDIT(gibfahn): Command line tools is fine, you don't need the full Xcode. Just ignore the warning. See here and here for more info.

@gibfahn

This comment has been minimized.

Show comment Hide comment
@gibfahn

gibfahn Oct 28, 2017

Member

So basically everyone seems ok with installing a 5G file just to get xcode, for the sole purpose of getting node-gyp to compile (even though gcc is already installed through the command line tool)

@gregory no, you can just use the command line tools and ignore the warning, it won't affect your compile in any way.

Member

gibfahn commented Oct 28, 2017

So basically everyone seems ok with installing a 5G file just to get xcode, for the sole purpose of getting node-gyp to compile (even though gcc is already installed through the command line tool)

@gregory no, you can just use the command line tools and ignore the warning, it won't affect your compile in any way.

@gibfahn

This comment has been minimized.

Show comment Hide comment
@gibfahn

gibfahn Oct 28, 2017

Member

This is frustrating to say the least, we are in 2017 and still this error showing up.
I have gcc installed from Homebrew. I do not need Xcode command line tools.

@Deviad Xcode command line tools is a requirement for installing Homebrew, so if you've installed homebrew you do need (and already have) the command line tools. https://docs.brew.sh/Installation.html

Member

gibfahn commented Oct 28, 2017

This is frustrating to say the least, we are in 2017 and still this error showing up.
I have gcc installed from Homebrew. I do not need Xcode command line tools.

@Deviad Xcode command line tools is a requirement for installing Homebrew, so if you've installed homebrew you do need (and already have) the command line tools. https://docs.brew.sh/Installation.html

@vb2807

This comment has been minimized.

Show comment Hide comment
@vb2807

vb2807 Oct 29, 2017

Hi,
I'm running into this issue. I've tried the suggested steps i.e.
xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools

However, I still get the same error. Most likely it's something that I've done incorrectly. It it helps I'm performing 'yarn install' and this error comes during that, and below is the result when I type 'yarn install'.

Any help is appreciated.

Full Output:
vbansal-2132:JIRAConnector vikas.bansal$ pwd
/Users/vikas.bansal/WebstormProjects/JIRAConnector
vbansal-2132:JIRAConnector vikas.bansal$ yarn install
yarn install v1.2.1
info No lockfile found.
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning @google-cloud/datastore > @google-cloud/common > retry-request > request > node-uuid@1.4.8: Use uuid module instead
warning jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
warning jade > transformers@2.1.0: Deprecated, use jstransformer
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
[5/5] 📃  Building fresh packages...
[1/3] ⠂ grpc:                             ^
[-/3] ⠂ waiting...
[-/3] ⠂ waiting...
[-/3] ⠂ waiting...
error /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc: Command failed.
Exit code: 1
Command: ./node_modules/.bin/node-pre-gyp install --fallback-to-build
Arguments: 
Directory: /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.38
node-pre-gyp info using node@8.8.1 | darwin | x64
node-pre-gyp info check checked for "/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary/grpc_node.node" (not found)
node-pre-gyp http GET https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz
node-pre-gyp http 403 https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for grpc@0.14.1 and node@8.8.1 (node-v57 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http 403 status code downloading tarball https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.8.1 | darwin | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.8.1 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/vikas.bansal/.node-gyp/8.8.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/vikas.bansal/.node-gyp/8.8.1',
gyp info spawn args   '-Dnode_gyp_dir=/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/vikas.bansal/.node-gyp/8.8.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

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

gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.8.1 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CC(target) Release/obj.target/grpc/src/core/lib/surface/init.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_args.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_stack.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_stack_builder.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/compress_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/connected_channel.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/http_client_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/http_server_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/compression/compression_algorithm.o
  CC(target) Release/obj.target/grpc/src/core/lib/compression/message_compress.o
  CC(target) Release/obj.target/grpc/src/core/lib/debug/trace.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/format_request.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/httpcli.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/parser.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/closure.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint_pair_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint_pair_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/ev_poll_and_epoll_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/ev_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/exec_ctx.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/executor.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iocp_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_set_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resolve_address_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resolve_address_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/sockaddr_utils.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_common_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_linux.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_client_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_client_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/time_averaged_stats.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/timer.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/timer_heap.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/udp_server.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/unix_sockets_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/unix_sockets_posix_noop.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_eventfd.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_nospecial.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_pipe.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/workqueue_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/workqueue_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_reader.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_string.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_writer.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/alarm.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/api_trace.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/byte_buffer.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/byte_buffer_reader.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call_details.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call_log_batch.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_init.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_ping.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_stack_type.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/completion_queue.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/event_string.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/lame_client.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/metadata_array.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/server.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/validate_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/version.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/byte_stream.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/connectivity_state.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/metadata_batch.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/static_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/transport.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/transport_op_string.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/bin_encoder.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/chttp2_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_data.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_goaway.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_ping.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_rst_stream.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_settings.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_window_update.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_encoder.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_parser.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_table.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/huffsyms.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/incoming_metadata.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/parsing.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/status_conversion.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/stream_lists.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/stream_map.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/timeout_encoding.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/varint.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/writing.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/alpn/alpn.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/httpcli_security_connector.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/b64.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/client_auth_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials_win32.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/google_default_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/handshake.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/json_token.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/jwt_verifier.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/secure_endpoint.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/security_connector.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/security_context.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/server_auth_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/init_secure.o
  CC(target) Release/obj.target/grpc/src/core/lib/tsi/fake_transport_security.o
  CC(target) Release/obj.target/grpc/src/core/lib/tsi/ssl_transport_security.o
  CC(target) Release/obj.target/grpc/src/core/lib/tsi/transport_security.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/secure/secure_channel_create.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/channel_connectivity.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_channel.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_channel_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_config.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_config_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/connector.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/default_initial_connect_string.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/initial_connect_string.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/lb_policy.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/lb_policy_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/lb_policy_registry.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/parse_address.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/resolver_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/resolver_registry.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/subchannel.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/subchannel_call_holder.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/subchannel_index.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/uri_parser.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/insecure/server_chttp2.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/insecure/channel_create.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/grpclb/load_balancer_api.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/grpclb/proto/grpc/lb/v0/load_balancer.pb.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_common.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_decode.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_encode.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/pick_first/pick_first.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/round_robin/round_robin.o
  CC(target) Release/obj.target/grpc/src/core/ext/resolver/dns/native/dns_resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/resolver/sockaddr/sockaddr_resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/context.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_context.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_filter.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/initialize.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/mlog.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/operation.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/placeholders.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/tracing.o
  CC(target) Release/obj.target/grpc/src/core/plugin_registry/grpc_plugin_registry.o
  LIBTOOL-STATIC Release/libgrpc.a
  CC(target) Release/obj.target/gpr/src/core/lib/profiling/basic_timers.o
  CC(target) Release/obj.target/gpr/src/core/lib/profiling/stap_timers.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/alloc.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/avl.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/backoff.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cmdline.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_iphone.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_linux.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_windows.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/env_linux.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/env_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/env_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/histogram.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/host_port.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/load_file.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_android.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_linux.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/murmur_hash.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/slice.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/slice_buffer.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/stack_lockfree.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string_util_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/subprocess_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/subprocess_windows.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/sync.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/sync_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/sync_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/thd.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/thd_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/thd_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time_precise.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tls_pthread.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tmpfile_msys.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tmpfile_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tmpfile_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/wrap_memcpy.o
  LIBTOOL-STATIC Release/libgpr.a
  CXX(target) Release/obj.target/grpc_node/src/node/ext/byte_buffer.o
../src/node/ext/byte_buffer.cc:100:49: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
  Local<Object> fastBuffer = bufferConstructor->NewInstance(3, consArgs);
                                                ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8.h:3831:3: note: 'NewInstance' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
1 warning generated.
  CXX(target) Release/obj.target/grpc_node/src/node/ext/call.o
../src/node/ext/call.cc:616:20: error: no member named 'SetHiddenValue' in 'v8::Object'
      info.This()->SetHiddenValue(Nan::New("channel_").ToLocalChecked(),
      ~~~~~~~~~~~  ^
../src/node/ext/call.cc:624:69: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
    MaybeLocal<Object> maybe_instance = constructor->GetFunction()->NewInstance(
                                                                    ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8.h:3831:3: note: 'NewInstance' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
1 warning and 1 error generated.
make: *** [Release/obj.target/grpc_node/src/node/ext/call.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/Users/vikas.bansal/.nvm/versions/node/v8.8.1/bin/node" "/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc
gyp ERR! node -v v8.8.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/Users/vikas.bansal/.nvm/versions/node/v8.8.1/bin/node /Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/Users/vikas.bansal/.nvm/versions/node/v8.8.1/bin/node" "/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc
node-pre-gyp ERR! node -v v8.8.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok 




vbansal-2132:JIRAConnector vikas.bansal$ 
vbansal-2132:JIRAConnector vikas.bansal$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
vbansal-2132:JIRAConnector vikas.bansal$ sudo xcode-select --switch /Library/Developer/CommandLineTools
Password:
Sorry, try again.
Password:
vbansal-2132:JIRAConnector vikas.bansal$ who am i
vikas.bansal ttys005  Oct 28 11:40 
vbansal-2132:JIRAConnector vikas.bansal$ 

vb2807 commented Oct 29, 2017

Hi,
I'm running into this issue. I've tried the suggested steps i.e.
xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools

However, I still get the same error. Most likely it's something that I've done incorrectly. It it helps I'm performing 'yarn install' and this error comes during that, and below is the result when I type 'yarn install'.

Any help is appreciated.

Full Output:
vbansal-2132:JIRAConnector vikas.bansal$ pwd
/Users/vikas.bansal/WebstormProjects/JIRAConnector
vbansal-2132:JIRAConnector vikas.bansal$ yarn install
yarn install v1.2.1
info No lockfile found.
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning @google-cloud/datastore > @google-cloud/common > retry-request > request > node-uuid@1.4.8: Use uuid module instead
warning jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
warning jade > transformers@2.1.0: Deprecated, use jstransformer
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
[5/5] 📃  Building fresh packages...
[1/3] ⠂ grpc:                             ^
[-/3] ⠂ waiting...
[-/3] ⠂ waiting...
[-/3] ⠂ waiting...
error /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc: Command failed.
Exit code: 1
Command: ./node_modules/.bin/node-pre-gyp install --fallback-to-build
Arguments: 
Directory: /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.38
node-pre-gyp info using node@8.8.1 | darwin | x64
node-pre-gyp info check checked for "/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary/grpc_node.node" (not found)
node-pre-gyp http GET https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz
node-pre-gyp http 403 https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for grpc@0.14.1 and node@8.8.1 (node-v57 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http 403 status code downloading tarball https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-darwin-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.8.1 | darwin | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.8.1 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/vikas.bansal/.node-gyp/8.8.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/vikas.bansal/.node-gyp/8.8.1',
gyp info spawn args   '-Dnode_gyp_dir=/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/vikas.bansal/.node-gyp/8.8.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

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

gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.8.1 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CC(target) Release/obj.target/grpc/src/core/lib/surface/init.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_args.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_stack.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/channel_stack_builder.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/compress_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/connected_channel.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/http_client_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/channel/http_server_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/compression/compression_algorithm.o
  CC(target) Release/obj.target/grpc/src/core/lib/compression/message_compress.o
  CC(target) Release/obj.target/grpc/src/core/lib/debug/trace.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/format_request.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/httpcli.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/parser.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/closure.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint_pair_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/endpoint_pair_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/ev_poll_and_epoll_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/ev_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/exec_ctx.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/executor.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iocp_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/iomgr_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_set_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/pollset_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resolve_address_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/resolve_address_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/sockaddr_utils.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_common_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_linux.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_utils_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/socket_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_client_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_client_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_server_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/tcp_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/time_averaged_stats.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/timer.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/timer_heap.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/udp_server.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/unix_sockets_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/unix_sockets_posix_noop.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_eventfd.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_nospecial.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_pipe.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/wakeup_fd_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/workqueue_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/iomgr/workqueue_windows.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_reader.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_string.o
  CC(target) Release/obj.target/grpc/src/core/lib/json/json_writer.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/alarm.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/api_trace.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/byte_buffer.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/byte_buffer_reader.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call_details.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/call_log_batch.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_init.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_ping.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/channel_stack_type.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/completion_queue.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/event_string.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/lame_client.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/metadata_array.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/server.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/validate_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/version.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/byte_stream.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/connectivity_state.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/metadata_batch.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/static_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/transport.o
  CC(target) Release/obj.target/grpc/src/core/lib/transport/transport_op_string.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/bin_encoder.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/chttp2_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_data.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_goaway.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_ping.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_rst_stream.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_settings.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/frame_window_update.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_encoder.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_parser.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/hpack_table.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/huffsyms.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/incoming_metadata.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/parsing.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/status_conversion.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/stream_lists.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/stream_map.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/timeout_encoding.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/varint.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/transport/writing.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/alpn/alpn.o
  CC(target) Release/obj.target/grpc/src/core/lib/http/httpcli_security_connector.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/b64.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/client_auth_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials_metadata.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials_posix.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/credentials_win32.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/google_default_credentials.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/handshake.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/json_token.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/jwt_verifier.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/secure_endpoint.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/security_connector.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/security_context.o
  CC(target) Release/obj.target/grpc/src/core/lib/security/server_auth_filter.o
  CC(target) Release/obj.target/grpc/src/core/lib/surface/init_secure.o
  CC(target) Release/obj.target/grpc/src/core/lib/tsi/fake_transport_security.o
  CC(target) Release/obj.target/grpc/src/core/lib/tsi/ssl_transport_security.o
  CC(target) Release/obj.target/grpc/src/core/lib/tsi/transport_security.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/secure/secure_channel_create.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/channel_connectivity.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_channel.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_channel_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_config.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/client_config_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/connector.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/default_initial_connect_string.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/initial_connect_string.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/lb_policy.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/lb_policy_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/lb_policy_registry.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/parse_address.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/resolver_factory.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/resolver_registry.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/subchannel.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/subchannel_call_holder.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/subchannel_index.o
  CC(target) Release/obj.target/grpc/src/core/ext/client_config/uri_parser.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/server/insecure/server_chttp2.o
  CC(target) Release/obj.target/grpc/src/core/ext/transport/chttp2/client/insecure/channel_create.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/grpclb/load_balancer_api.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/grpclb/proto/grpc/lb/v0/load_balancer.pb.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_common.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_decode.o
  CC(target) Release/obj.target/grpc/third_party/nanopb/pb_encode.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/pick_first/pick_first.o
  CC(target) Release/obj.target/grpc/src/core/ext/lb_policy/round_robin/round_robin.o
  CC(target) Release/obj.target/grpc/src/core/ext/resolver/dns/native/dns_resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/resolver/sockaddr/sockaddr_resolver.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/context.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_context.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_filter.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/grpc_plugin.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/initialize.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/mlog.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/operation.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/placeholders.o
  CC(target) Release/obj.target/grpc/src/core/ext/census/tracing.o
  CC(target) Release/obj.target/grpc/src/core/plugin_registry/grpc_plugin_registry.o
  LIBTOOL-STATIC Release/libgrpc.a
  CC(target) Release/obj.target/gpr/src/core/lib/profiling/basic_timers.o
  CC(target) Release/obj.target/gpr/src/core/lib/profiling/stap_timers.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/alloc.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/avl.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/backoff.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cmdline.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_iphone.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_linux.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/cpu_windows.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/env_linux.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/env_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/env_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/histogram.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/host_port.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/load_file.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_android.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_linux.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/log_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/murmur_hash.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/slice.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/slice_buffer.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/stack_lockfree.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string_util_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/string_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/subprocess_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/subprocess_windows.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/sync.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/sync_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/sync_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/thd.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/thd_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/thd_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time_precise.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/time_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tls_pthread.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tmpfile_msys.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tmpfile_posix.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/tmpfile_win32.o
  CC(target) Release/obj.target/gpr/src/core/lib/support/wrap_memcpy.o
  LIBTOOL-STATIC Release/libgpr.a
  CXX(target) Release/obj.target/grpc_node/src/node/ext/byte_buffer.o
../src/node/ext/byte_buffer.cc:100:49: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
  Local<Object> fastBuffer = bufferConstructor->NewInstance(3, consArgs);
                                                ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8.h:3831:3: note: 'NewInstance' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
1 warning generated.
  CXX(target) Release/obj.target/grpc_node/src/node/ext/call.o
../src/node/ext/call.cc:616:20: error: no member named 'SetHiddenValue' in 'v8::Object'
      info.This()->SetHiddenValue(Nan::New("channel_").ToLocalChecked(),
      ~~~~~~~~~~~  ^
../src/node/ext/call.cc:624:69: warning: 'NewInstance' is deprecated [-Wdeprecated-declarations]
    MaybeLocal<Object> maybe_instance = constructor->GetFunction()->NewInstance(
                                                                    ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8.h:3831:3: note: 'NewInstance' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/vikas.bansal/.node-gyp/8.8.1/include/node/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
1 warning and 1 error generated.
make: *** [Release/obj.target/grpc_node/src/node/ext/call.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/Users/vikas.bansal/.nvm/versions/node/v8.8.1/bin/node" "/Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc
gyp ERR! node -v v8.8.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/Users/vikas.bansal/.nvm/versions/node/v8.8.1/bin/node /Users/vikas.bansal/.nvm/versions/node/v8.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/Users/vikas.bansal/.nvm/versions/node/v8.8.1/bin/node" "/Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/vikas.bansal/WebstormProjects/JIRAConnector/node_modules/grpc
node-pre-gyp ERR! node -v v8.8.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok 




vbansal-2132:JIRAConnector vikas.bansal$ 
vbansal-2132:JIRAConnector vikas.bansal$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
vbansal-2132:JIRAConnector vikas.bansal$ sudo xcode-select --switch /Library/Developer/CommandLineTools
Password:
Sorry, try again.
Password:
vbansal-2132:JIRAConnector vikas.bansal$ who am i
vikas.bansal ttys005  Oct 28 11:40 
vbansal-2132:JIRAConnector vikas.bansal$ 
@bnoordhuis

This comment has been minimized.

Show comment Hide comment
@bnoordhuis

bnoordhuis Oct 29, 2017

Member

@vb2807 Different issue. Report it to the grpc project.

Member

bnoordhuis commented Oct 29, 2017

@vb2807 Different issue. Report it to the grpc project.

@gibfahn

This comment has been minimized.

Show comment Hide comment
@gibfahn

gibfahn Oct 29, 2017

Member

@vb2807 note these lines:

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

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

gyp info ok
gyp info it worked if it ends with ok

The gyp info ok means that the gyp part succeeded, the error is the bit that comes later:

../src/node/ext/call.cc:616:20: error: no member named 'SetHiddenValue' in 'v8::Object'
info.This()->SetHiddenValue(Nan::New("channel_").ToLocalChecked(),

Which as @bnoordhuis points out, is an error with the grpc module.

Member

gibfahn commented Oct 29, 2017

@vb2807 note these lines:

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

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

gyp info ok
gyp info it worked if it ends with ok

The gyp info ok means that the gyp part succeeded, the error is the bit that comes later:

../src/node/ext/call.cc:616:20: error: no member named 'SetHiddenValue' in 'v8::Object'
info.This()->SetHiddenValue(Nan::New("channel_").ToLocalChecked(),

Which as @bnoordhuis points out, is an error with the grpc module.

@vb2807

This comment has been minimized.

Show comment Hide comment
@vb2807

vb2807 Oct 30, 2017

Thank you. This is helpful.

vb2807 commented Oct 30, 2017

Thank you. This is helpful.

@aleksander351

This comment has been minimized.

Show comment Hide comment
@aleksander351

aleksander351 Nov 17, 2017

@davis How can I ignore it, when I want to run cordova emulate ios and it does not work? Because it throws that error.

aleksander351 commented Nov 17, 2017

@davis How can I ignore it, when I want to run cordova emulate ios and it does not work? Because it throws that error.

@gibfahn

This comment has been minimized.

Show comment Hide comment
@gibfahn

gibfahn Nov 17, 2017

Member

@aleksander351 you haven't installed Xcode, which is a requirement for cordova (see their docs: http://cordova.apache.org/docs/en/dev/guide/platforms/ios/index.html#installing-the-requirements).

Nothing to do with node-gyp.

Member

gibfahn commented Nov 17, 2017

@aleksander351 you haven't installed Xcode, which is a requirement for cordova (see their docs: http://cordova.apache.org/docs/en/dev/guide/platforms/ios/index.html#installing-the-requirements).

Nothing to do with node-gyp.

@HanSJin

This comment has been minimized.

Show comment Hide comment
@HanSJin

HanSJin Dec 4, 2017

@jfmercer answer works for me!

HanSJin commented Dec 4, 2017

@jfmercer answer works for me!

@VictorBjelkholm VictorBjelkholm referenced this issue in ipfs-shipyard/ipfs-desktop Dec 4, 2017

Closed

Trouble building on macOS #517

@raulfdm raulfdm referenced this issue in raulfdm/react-boilerplate Dec 10, 2017

Closed

npm install - warnings #1

@Timer Timer referenced this issue in facebook/create-react-app Dec 29, 2017

Closed

node-pre-gyp error but app still functioning #3588

@thehashrocket

This comment has been minimized.

Show comment Hide comment
@thehashrocket

thehashrocket Jan 2, 2018

you can always do a xcode-select -r if you already have command line tools or Xcode already installed.

you can always do a xcode-select -r if you already have command line tools or Xcode already installed.

@haribharadwaj

This comment has been minimized.

Show comment Hide comment
@haribharadwaj

haribharadwaj Jan 3, 2018

It seems like xcodebuild (and consequently the full ~5GB Xcode install) is still needed to accept the Xcode license even if you just want the command line tools?

It seems like xcodebuild (and consequently the full ~5GB Xcode install) is still needed to accept the Xcode license even if you just want the command line tools?

@tmburnell

This comment has been minimized.

Show comment Hide comment
@tmburnell

tmburnell Jan 15, 2018

None of the other solutions worked for me, however deleting my package-lock.json and reinstalling npm install allowed it to rebuild correctly.

None of the other solutions worked for me, however deleting my package-lock.json and reinstalling npm install allowed it to rebuild correctly.

@gibfahn gibfahn referenced this issue Jan 21, 2018

Merged

gyp: don't print xcodebuild not found errors #1370

2 of 2 tasks complete

gibfahn added a commit to gibfahn/node-gyp that referenced this issue Jan 21, 2018

gyp: don't print xcodebuild not found errors
As node-gyp rebuild doesn't seem to need xcodebuild, we don't need to be
printing the error every time GYP is run.

Refs: nodejs#1057
Refs: https://chromium-review.googlesource.com/c/492046/
Refs: nodejs#569

gibfahn added a commit to gibfahn/node-gyp that referenced this issue Mar 14, 2018

gyp: don't print xcodebuild not found errors
As node-gyp rebuild doesn't seem to need xcodebuild, we don't need to be
printing the error every time GYP is run.

PR-URL: nodejs#1370
Refs: nodejs#1057
Refs: https://chromium-review.googlesource.com/c/492046/
Refs: nodejs#569
@tngn

This comment has been minimized.

Show comment Hide comment
@tngn

tngn Mar 15, 2018

sudo xcode-select -s ... needs to be followed by:
sudo xcodebuild license
before you 'make' or 'configure' again.

tngn commented Mar 15, 2018

sudo xcode-select -s ... needs to be followed by:
sudo xcodebuild license
before you 'make' or 'configure' again.

gibfahn added a commit to gibfahn/node-gyp that referenced this issue Mar 15, 2018

gyp: don't print xcodebuild not found errors
As node-gyp rebuild doesn't seem to need xcodebuild, we don't need to be
printing the error every time GYP is run.

PR-URL: nodejs#1370
Fixes: nodejs#569
Refs: nodejs#1057
Refs: https://chromium-review.googlesource.com/c/492046/

@HerrBertling HerrBertling referenced this issue in airbnb/react-sketchapp May 16, 2018

Closed

npm install error #331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment