azure-sdk-for-js: Rush update fails using Node v17 on MacOS 11.6.1 (Big Sur)

The following error occurs when running rush update using Node v17 but successfully passes when using v16.

Here are the versions I was using when the command failed: Node - 17.0.0 NPM - 8.3.1 Python - 3.9.7 macOS - 11.6.1

The output of the error is below:

node_modules/.pnpm/https://github.com/Azure+msal-node-extensions@1.0.0-alpha.13/node_modules/@azure/msal-node-extensions: Running install script, failed in 1.5s …/@azure/msal-node-extensions install$ node-gyp rebuild │ gyp info it worked if it ends with ok │ gyp info using node-gyp@8.3.0 │ gyp info using node@17.0.0 | darwin | x64 │ gyp info find Python using Python version 3.9.7 found at “/Users/hamsa/anaconda3/bin/python3” │ gyp info spawn /Users/hamsa/anaconda3/bin/python3 │ gyp info spawn args [ │ gyp info spawn args '/Users/hamsa/.rush/node-v17.0.0/pnpm-6.19.1/node_modules/pnpm/dist/node_modul │ gyp info spawn args ‘binding.gyp’, │ gyp info spawn args ‘-f’, │ gyp info spawn args ‘make’, │ gyp info spawn args ‘-I’, │ gyp info spawn args '/Users/hamsa/VSCode/azure-sdk-for-js/common/temp/node_modules/.pnpm/@azure+ms │ gyp info spawn args ‘-I’, │ gyp info spawn args '/Users/hamsa/.rush/node-v17.0.0/pnpm-6.19.1/node_modules/pnpm/dist/node_modul │ gyp info spawn args ‘-I’, │ gyp info spawn args ‘/Users/hamsa/Library/Caches/node-gyp/17.0.0/include/node/common.gypi’, │ gyp info spawn args ‘-Dlibrary=shared_library’, │ gyp info spawn args ‘-Dvisibility=default’, │ gyp info spawn args ‘-Dnode_root_dir=/Users/hamsa/Library/Caches/node-gyp/17.0.0’, │ gyp info spawn args '-Dnode_gyp_dir=/Users/hamsa/.rush/node-v17.0.0/pnpm-6.19.1/node_modules/pnpm/ │ gyp info spawn args '-Dnode_lib_file=/Users/hamsa/Library/Caches/node-gyp/17.0.0/<(target_arch)/no │ gyp info spawn args '-Dmodule_root_dir=/Users/hamsa/VSCode/azure-sdk-for-js/common/temp/node_modul │ gyp info spawn args ‘-Dnode_engine=v8’, │ gyp info spawn args ‘–depth=.’, │ gyp info spawn args ‘–no-parallel’, │ gyp info spawn args ‘–generator-output’, │ gyp info spawn args ‘build’, │ gyp info spawn args ‘-Goutput_dir=.’ │ gyp info spawn args ] │ No receipt for ‘com.apple.pkg.CLTools_Executables’ found at ‘/’. │ No receipt for ‘com.apple.pkg.DeveloperToolsCLILeo’ found at ‘/’. │ No receipt for ‘com.apple.pkg.DeveloperToolsCLI’ found at ‘/’. │ gyp info spawn make │ gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ] │ CXX(target) Release/obj.target/dpapi/src/dpapi-addon/main.o │ In file included from …/src/dpapi-addon/main.cpp:6: │ In file included from …/…/…/…/…/nan@2.15.0/node_modules/nan/nan.h:58: │ In file included from /Users/hamsa/Library/Caches/node-gyp/17.0.0/include/node/node.h:63: │ In file included from /Users/hamsa/Library/Caches/node-gyp/17.0.0/include/node/v8.h:25: │ In file included from /Users/hamsa/Library/Caches/node-gyp/17.0.0/include/node/v8-array-buffer.h:13: │ In file included from /Users/hamsa/Library/Caches/node-gyp/17.0.0/include/node/v8-object.h:10: │ /Users/hamsa/Library/Caches/node-gyp/17.0.0/include/node/v8-persistent-handle.h:10:10: fatal error: │ #include “v8-weak-callback-info.h” // NOLINT(build/include_directory) │ ^~~~~~~~~~~~~~~~~~~~~~~~~ │ 1 error generated. │ make: *** [Release/obj.target/dpapi/src/dpapi-addon/main.o] Error 1 │ gyp ERR! build error │ gyp ERR! stack Error: make failed with exit code: 2 │ gyp ERR! stack at ChildProcess.onExit (/Users/hamsa/.rush/node-v17.0.0/pnpm-6.19.1/node_modules/ │ 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 “/usr/local/bin/node” "/Users/hamsa/.rush/node-v17.0.0/pnpm-6.19.1/node_modules/pnp │ gyp ERR! cwd /Users/hamsa/VSCode/azure-sdk-for-js/common/temp/node_modules/.pnpm/@azure+msal-node-ex │ gyp ERR! node -v v17.0.0 │ gyp ERR! node-gyp -v v8.3.0 │ gyp ERR! not ok └─ Failed in 1.5s  ELIFECYCLE  Command failed with exit code 1.

The command failed: /Users/hamsa/VSCode/azure-sdk-for-js/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /Users/hamsa/VSCode/azure-sdk-for-js/common/temp/pnpm-store --no-prefer-frozen-lockfile --strict-peer-dependencies ERROR: Error: The command failed with exit code 1

Giving up after 3 attempts

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

Awesome!!! I’ll close this issue then 👍 Thank you for your patience and for your contributions 🙏

@sadasant that worked!! Thank you so much for taking the time to look into this!

It’s an Intel Core i7 Mac. Also, I’m still able to work in the repository with Node 16 so take your time with this issue! I’m not in a big rush or anything since I can get it working in other ways.

Also, please make sure you have the XCode developer tools (just the command-line tools are sufficient) from Apple: https://developer.apple.com/download/all/