npm ERR! Failed to execute '/opt/homebrew/Cellar/node/17.2.0/bin/node /opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build ...
This error i faced mainly after doing npm install in root directory for it
-
i updated xcode using this:
How to update Xcode from command line - Stack Overflow -
reinstall my node
brew uninstall node && brew install node
Node is broken after updating to macOS 11.2 · Discussion #676 · Homebrew/discussions · GitHub