question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't resolve node-gyp error on mac, version 11.6 - Followed your mac docs, can't resolve!

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
gtupakcommented, Nov 30, 2021

I have the same problem on Mac OS Monterey

0reactions
cclausscommented, Aug 4, 2022

@jaydipjpinfotech This issue is closed so please open a new issue and provide the command typed and the full error log.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found