Npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/florianbischoff/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) Npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 Npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/florianbischoff/Library/Caches/node-gyp/16.10.0/ Npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/florianbischoff/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp', Npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/florianbischoff/Library/Caches/node-gyp/16.10.0', Npm ERR! gyp info spawn args '-Dvisibility=default', Npm ERR! gyp info spawn args '-Dlibrary=shared_library', Npm ERR! gyp info spawn args '/Users/florianbischoff/Library/Caches/node-gyp/16.10.0/include/node/common.gypi', Npm ERR! gyp info spawn args '/Users/florianbischoff/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', Npm ERR! gyp info spawn args '/Users/florianbischoff/Repositories/datev-konverter/node_modules/mongodb-client-encryption/build/config.gypi', Npm ERR! gyp info spawn args 'binding.gyp', Npm ERR! gyp info spawn args '/Users/florianbischoff/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', Npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3 In the future the property will be read-only. Npm ERR! (node:89775) DeprecationWarning: Setting nfig is deprecated. Npm ERR! gyp info find Python using Python version 3.8.9 found at "/Library/Developer/CommandLineTools/usr/bin/python3" Npm ERR! gyp info using ERR! gyp info using | darwin | arm64 Npm ERR! gyp info it worked if it ends with ok
Npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.10.0 runtime=node arch=arm64 libc= platform=darwin) Npm ERR! CXX(target) Release/obj.target/mongocrypt/src/mongocrypt.o Npm ERR! command sh -c prebuild-install -tag-prefix node-v || node-gyp rebuild Npm ERR! path /Users/florianbischoff/Repositories/datev-konverter/node_modules/mongodb-client-encryption
The mongo driver works and according to the docs the field level encryption is compatible with the driver, but when installing mongodb-client-encryption on Mac m1 node 16, I get an error: npm ERR! code 1 Node 16 officially supports Mac M1 (ARM) architecture.