Skip to content

node-gyp rebuild failed on MacOS #1464

Closed
@realdennis

Description

@realdennis
  • Node Version: node v10.4.0 npm 6.1.0
  • Platform: MacOS
  • Compiler: Apple LLVM version 10.0.0 (clang-1000.10.25.5)
  • Module:
Verbose output (from npm or node-gyp):
> node-gyp rebuild

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

Some strange behavior: When I use the npm script to run the node-gyp would rebuild failed, but ./node_modules/node-gyp/bin/node-gyp.js will run ok.

$ xcode-select -p
/Library/Developer/CommandLineTools

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions