Can't resolve node-gyp error on mac, version 11.6 - Followed your mac docs, can't resolve!
See original GitHub issueHi,
I keep getting this error @ work when I yarn install:
1 error generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/nickmorgan/WebstormProjects/MX Digital - Corporate Website/Frontend/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:390:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.6.0
gyp ERR! command "/opt/homebrew/Cellar/node/16.11.1/bin/node" "/Users/nickmorgan/WebstormProjects/MX Digital - Corporate Website/Frontend/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/nickmorgan/WebstormProjects/MX Digital - Corporate Website/Frontend/node_modules/node-sass
gyp ERR! node -v v16.11.1
How do I resolve this? I’ve done the following:
- Deleted node_modules/yarn.lock and reinstalled
- Followed the node-gyp docs: https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md
- Re installed xcode and xcode select
- upgraded xcode and xcode select
- downgraded them to a lower version
- upgraded python to latest
- downgraded python to lower packages
- restarted my pc
- downgraded my mac version and upgraded
- reinstalled node/npm
- upgraded/downgraded node/npm
- cleared terminal/node_module/npm/yarn cache
- read over 100 articles on stack, followed and nothing…
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Fix broken 'node-gyp' issue for Mac OS | by Fernando De Freitas
This issue is usually caused because a node-gyp config file called common.gypi is not set up for your current Mac OS version. It...
Read more >npm ERR! gyp verb cli - Stack Overflow
I solved this problem by changing the node version to 14.15.1.
Read more >fibers - npm
To manually invoke the build process, you can use node-gyp rebuild . This will put the compiled extension in build/Release/fibers.node .
Read more >node-gyp | Yarn - Package Manager
node -gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. It contains a vendored copy of...
Read more >A Comprehensive Guide to Fixing Node-Gyp Issues on Windows
Still getting an installation error? Try installing an older version of Node. If you're on an experimental version, try going back to the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same problem on Mac OS Monterey
@jaydipjpinfotech This issue is closed so please open a new issue and provide the command typed and the full error log.