-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: 'utility' file not found, node-gyp rebuild #1574
Comments
/Users/alex/.node-gyp/6.11.5/include/node/common.gypi check out MacOS dev environment in this file |
@yerassyl94 thx, it solved the problem! |
Let's mention that it's about bumping macOS version like in your PR to i.e. 10.9 @yerassyl94 could you explain what's the root cause here? |
It fixes an issue when running `npm install` for a project with *Node v6.11.5* and *npm v3.10.10* on *Mac OS X 10.4 Mojave* and *Xcode v9.4.1 || Xcode v10.0*. It asks for the 'utility' file when running `node-gyp rebuild`. Fixes: nodejs/node-gyp#1574
Related to #1564 |
FTR, possible workaround:For users:env CXXFLAGS="-mmacosx-version-min=10.9" npm install For addon authors:add this to your 'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
}, |
with
|
v6.11.5
and3.10.10
macOS Mojave Version: 10.14 (18A391)
Xcode v9.4.1
andXcode v10
cc -v
:node-gyp rebuild
Verbose output (from npm or node-gyp):
The text was updated successfully, but these errors were encountered: