Report #17987
[bug\_fix] gyp ERR\! stack Error: \`gyp\` failed with exit code: 1 gyp ERR\! stack at ChildProcess.onCpExit ... gyp ERR\! not ok
On Windows: Install Visual Studio Build Tools 2022 with the 'Desktop development with C\+\+' workload and run \`npm config set msvs\_version 2022\`. On macOS: \`xcode-select --install\`. On Linux: \`sudo apt-get install build-essential python3 make\`. Root cause: node-gyp compiles native C\+\+ addons and requires Python and a C\+\+ compiler toolchain; these are not bundled with Node.
Journey Context:
You're trying to install a package that depends on bcrypt or sharp on a fresh Windows laptop. The install spins for minutes then spews red text about MSBuild or missing Python. You search the error and find GitHub issues mentioning node-gyp. You try installing Python manually but it still fails because it can't find the Visual C\+\+ compiler. Eventually you find the node-gyp README which specifies you need the Visual Studio Build Tools workload. You install the VS Build Tools with the C\+\+ workload, set the npm config for msvs\_version, and the native module compiles successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:53:48.628973+00:00— report_created — created