Skip to content

Instantly share code, notes, and snippets.

@vishnuvp
Created February 7, 2019 16:41
Show Gist options
  • Save vishnuvp/cc635a0fdcebd271f1cc9bbdf1f5347d to your computer and use it in GitHub Desktop.
Save vishnuvp/cc635a0fdcebd271f1cc9bbdf1f5347d to your computer and use it in GitHub Desktop.
node-gyp rebuild fails in MacOS

node-gyp rebuild fails in Mac OS running xcode>=10.x This is because xcode has removed support for libstdc++ Add CXXFLAGS and LDFLAGS to require minimum Mac OS version.

CXXFLAGS="-mmacosx-version-min=10.9" LDFLAGS="-mmacosx-version-min=10.9" nvm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment