Skip to content

bitwarden-cli: npm fails when applying config #452649

@trueberryless

Description

@trueberryless

Nixpkgs version

  • Stable (25.05)

Describe the bug

Hi! I have issues when I try to install the package bitwarden-cli package with nix-darwin. According to the error logs, npm is failing to install (?) some packages. I am unsure to be honest as I am little new to Nix.

This could also maybe be some issue with different Node versions, but that's my best guess...

Steps to reproduce

Run nix-shell -p bitwarden-cli with Nixpkgs version 25.05.

Expected behaviour

The bitwarden-cli package should install and apply correctly without npm failing.

Screenshots

No response

Relevant log output

Finished npmConfigHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
npm verbose cli /nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/bin/node /nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/bin/npm
npm info using npm@10.8.2
npm info using node@v20.19.5
npm verbose title npm rebuild
npm verbose argv "rebuild" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/cache/_logs/2025-10-16T16_58_34_029Z-
npm verbose logfile /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/cache/_logs/2025-10-16T16_58_34_029Z-debug-0.log
npm info run @parcel/watcher@2.5.1 install node_modules/@parcel/watcher node scripts/build-from-source.js
npm info run argon2@0.41.1 install node_modules/argon2 node-gyp-build
npm info run bufferutil@4.0.9 install node_modules/bufferutil node-gyp-build
npm info run lmdb@3.0.13 install node_modules/lmdb node-gyp-build-optional-packages
npm info run msgpackr-extract@3.0.3 install node_modules/msgpackr-extract node-gyp-build-optional-packages
npm info run nice-napi@1.0.2 install node_modules/nice-napi node-gyp-build
npm info run utf-8-validate@6.0.5 install node_modules/utf-8-validate node-gyp-build
npm info run utf-8-validate@5.0.10 install node_modules/@microsoft/signalr/node_modules/utf-8-validate node-gyp-build
npm info run bufferutil@4.0.9 install { code: 0, signal: null }
npm info run utf-8-validate@5.0.10 install { code: 0, signal: null }
npm info run msgpackr-extract@3.0.3 install { code: 0, signal: null }
npm info run utf-8-validate@6.0.5 install { code: 0, signal: null }
npm info run nice-napi@1.0.2 install { code: 0, signal: null }
npm info run argon2@0.41.1 install { code: 1, signal: null }
npm verbose stack Error: command failed
npm verbose stack     at promiseSpawn (/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22)
npm verbose stack     at spawnWithShell (/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10)
npm verbose stack     at promiseSpawn (/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12)
npm verbose stack     at runScriptPkg (/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:77:13)
npm verbose stack     at runScript (/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:9:12)
npm verbose stack     at /nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:329:17
npm verbose stack     at run (/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:67:22)
npm verbose stack     at /nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:84:9
npm verbose stack     at new Promise (<anonymous>)
npm verbose stack     at callLimit (/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:35:69)
npm verbose pkgid argon2@0.41.1
npm error code 1
npm error path /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2
npm error command failed
npm error command sh -c node-gyp-build
npm error make: Entering directory '/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/build'
npm error   clang -o Release/obj.target/libargon2/argon2/src/ref.o ../argon2/src/ref.c '-D_FORTIFY_SOURCE=2' '-DNDEBUG' '-DNODE_GYP_MODULE_NAME=libargon2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' -I../argon2/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/src -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/config -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/openssl/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/uv/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/zlib -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/v8/include  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libargon2/argon2/src/ref.o.d.raw   -c
npm error   clang -o Release/obj.target/libargon2/argon2/src/argon2.o ../argon2/src/argon2.c '-D_FORTIFY_SOURCE=2' '-DNDEBUG' '-DNODE_GYP_MODULE_NAME=libargon2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' -I../argon2/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/src -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/config -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/openssl/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/uv/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/zlib -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/v8/include  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libargon2/argon2/src/argon2.o.d.raw   -c
npm error   clang -o Release/obj.target/libargon2/argon2/src/blake2/blake2b.o ../argon2/src/blake2/blake2b.c '-D_FORTIFY_SOURCE=2' '-DNDEBUG' '-DNODE_GYP_MODULE_NAME=libargon2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' -I../argon2/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/src -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/config -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/openssl/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/uv/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/zlib -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/v8/include  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libargon2/argon2/src/blake2/blake2b.o.d.raw   -c
npm error   clang -o Release/obj.target/libargon2/argon2/src/core.o ../argon2/src/core.c '-D_FORTIFY_SOURCE=2' '-DNDEBUG' '-DNODE_GYP_MODULE_NAME=libargon2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' -I../argon2/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/src -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/config -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/openssl/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/uv/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/zlib -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/v8/include  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libargon2/argon2/src/core.o.d.raw   -c
npm error   clang -o Release/obj.target/libargon2/argon2/src/encoding.o ../argon2/src/encoding.c '-D_FORTIFY_SOURCE=2' '-DNDEBUG' '-DNODE_GYP_MODULE_NAME=libargon2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' -I../argon2/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/src -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/config -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/openssl/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/uv/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/zlib -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/v8/include  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libargon2/argon2/src/encoding.o.d.raw   -c
npm error   clang -o Release/obj.target/libargon2/argon2/src/thread.o ../argon2/src/thread.c '-D_FORTIFY_SOURCE=2' '-DNDEBUG' '-DNODE_GYP_MODULE_NAME=libargon2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' -I../argon2/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/src -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/config -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/openssl/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/uv/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/zlib -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/v8/include  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libargon2/argon2/src/thread.o.d.raw   -c
npm error   rm -f Release/argon2.a && ./gyp-mac-tool filter-libtool libtool  -static -o Release/argon2.a Release/obj.target/libargon2/argon2/src/ref.o Release/obj.target/libargon2/argon2/src/argon2.o Release/obj.target/libargon2/argon2/src/blake2/blake2b.o Release/obj.target/libargon2/argon2/src/core.o Release/obj.target/libargon2/argon2/src/encoding.o Release/obj.target/libargon2/argon2/src/thread.o
npm error   clang++ -o Release/obj.target/argon2/argon2.o ../argon2.cpp '-D_FORTIFY_SOURCE=2' '-DNDEBUG' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_NO_EXTERNAL_BUFFERS_ALLOWED' '-DNODE_GYP_MODULE_NAME=argon2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-DBUILDING_NODE_EXTENSION' -I../argon2/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/src -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/config -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/openssl/openssl/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/uv/include -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/zlib -I/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/deps/v8/include -I../../node-addon-api  -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/argon2/argon2.o.d.raw   -c
npm error make: Leaving directory '/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/build'
npm error gyp info it worked if it ends with ok
npm error gyp verb cli [
npm error gyp verb cli '/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/bin/node',
npm error gyp verb cli '/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/node-gyp/bin/node-gyp.js',
npm error gyp verb cli 'rebuild'
npm error gyp verb cli ]
npm error gyp info using node-gyp@10.3.1
npm error gyp info using node@20.19.5 | darwin | arm64
npm error gyp verb clean removing "build" directory
npm error gyp verb find Python Python is not set from command line or npm configuration
npm error gyp verb find Python Python is not set from environment variable PYTHON
npm error gyp verb find Python checking if "python3" can be used
npm error gyp verb find Python - executing "python3" to get executable path
npm error gyp verb find Python - executable path is "/nix/store/v21kg4vm7yy0wflh0avkibz0shk86jn8-python3-3.12.11/bin/python3"
npm error gyp verb find Python - executing "/nix/store/v21kg4vm7yy0wflh0avkibz0shk86jn8-python3-3.12.11/bin/python3" to get version
npm error gyp verb find Python - version is "3.12.11"
npm error gyp info find Python using Python version 3.12.11 found at "/nix/store/v21kg4vm7yy0wflh0avkibz0shk86jn8-python3-3.12.11/bin/python3"
npm error gyp verb get node dir compiling against specified --nodedir dev files: /nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source
npm error gyp verb build dir attempting to create "build" dir: /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/build
npm error gyp verb build dir "build" dir needed to be created? Yes
npm error gyp verb build/config.gypi creating config file
npm error gyp WARN read config.gypi ENOENT: no such file or directory, open '/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/include/node/config.gypi'
npm error gyp verb build/config.gypi writing out config file: /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/build/config.gypi
npm error gyp verb config.gypi checking for gypi file: /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/config.gypi
npm error gyp verb common.gypi checking for gypi file: /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/common.gypi
npm error gyp verb gyp gyp format was not specified; forcing "make"
npm error gyp info spawn /nix/store/v21kg4vm7yy0wflh0avkibz0shk86jn8-python3-3.12.11/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source',
npm error gyp info spawn args '-Dnode_gyp_dir=/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source/$(Configuration)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp verb build type Release
npm error gyp verb architecture arm64
npm error gyp verb node dev dir /nix/store/6nqjd5swccccj27ymnj3sffawpc57jzx-nodejs-20.19.5-source
npm error gyp verb python /nix/store/v21kg4vm7yy0wflh0avkibz0shk86jn8-python3-3.12.11/bin/python3
npm error gyp verb `which` succeeded for `make` /nix/store/mc3wbj504q0xq0zbikrw8s0fnza7a6nw-gnumake-4.4.1/bin/make
npm error gyp verb bin symlinks created symlink to "/nix/store/v21kg4vm7yy0wflh0avkibz0shk86jn8-python3-3.12.11/bin/python3" in "/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2/build/node_gyp_bins" and added to PATH
npm error gyp info spawn make
npm error gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error   820 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
npm error       |                                          ^
npm error ../argon2.cpp:71:13: note: in instantiation of template class 'std::basic_string<unsigned char>' requested here
npm error    71 |     ustring hash = {};
npm error       |             ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:16:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/concepts.h:16:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/format_parse_context.h:16:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error   300 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
npm error       |                                          ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__type_traits/is_convertible.h:22:99: note: in instantiation of template class 'std::basic_string_view<unsigned char>' requested here
npm error    22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
npm error       |                                                                                                   ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:745:29: note: in instantiation of template class 'std::is_convertible<unsigned char *const &, std::basic_string_view<unsigned char>>' requested here
npm error   745 |     : public _BoolConstant< is_convertible<const _Tp&, basic_string_view<_CharT, _Traits> >::value &&
npm error       |                             ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:1161:27: note: in instantiation of template class 'std::__can_be_converted_to_string_view<unsigned char, std::char_traits<unsigned char>, unsigned char *>' requested here
npm error  1161 |             __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
npm error       |                           ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:1165:42: note: while substituting prior template arguments into non-type template parameter [with _Tp = unsigned char *]
npm error  1165 |   _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit basic_string(const _Tp& __t, const allocator_type& __a)
npm error       |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error  1166 |       : __r_(__default_init_tag(), __a) {
npm error       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error  1167 |     __self_view __sv = __t;
npm error       |     ~~~~~~~~~~~~~~~~~~~~~~~
npm error  1168 |     __init(__sv.data(), __sv.size());
npm error       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error  1169 |   }
npm error       |   ~
npm error ../argon2.cpp:17:11: note: while substituting deduced template arguments into function template 'basic_string' [with _Tp = unsigned char *, $1 = (no value)]
npm error    17 |           plain{plain.Data(), plain.ByteLength()},
npm error       |           ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2343:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error  2343 |   traits_type::copy(std::__to_address(__p), __s, __sz);
npm error       |   ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:1078:5: note: in instantiation of member function 'std::basic_string<unsigned char>::__init' requested here
npm error  1078 |     __init(__s, __n);
npm error       |     ^
npm error ../argon2.cpp:17:11: note: in instantiation of member function 'std::basic_string<unsigned char>::basic_string' requested here
npm error    17 |           plain{plain.Data(), plain.ByteLength()},
npm error       |           ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2344:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error  2344 |   traits_type::assign(__p[__sz], value_type());
npm error       |   ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2861:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error  2861 |     traits_type::assign(std::__to_address(__p) + __sz, __n, __c);
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:3302:5: note: in instantiation of member function 'std::basic_string<unsigned char>::append' requested here
npm error  3302 |     append(__n - __sz, __c);
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:1303:84: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error  1303 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void resize(size_type __n) { resize(__n, value_type()); }
npm error       |                                                                                    ^
npm error ../argon2.cpp:29:14: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error    29 |         hash.resize(hash_length);
npm error       |              ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2864:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error  2864 |     traits_type::assign(__p[__sz], value_type());
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2535:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error  2535 |     traits_type::copy(std::__to_address(__p), std::__to_address(__old_p), __n_copy);
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2556:3: note: in instantiation of member function 'std::basic_string<unsigned char>::__grow_by' requested here
npm error  2556 |   __grow_by(__old_cap, __delta_cap, __old_sz, __n_copy, __n_del, __n_add);
npm error       |   ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2858:7: note: in instantiation of member function 'std::basic_string<unsigned char>::__grow_by_without_replace' requested here
npm error  2858 |       __grow_by_without_replace(__cap, __sz + __n - __cap, __sz, __sz, 0);
npm error       |       ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:3302:5: note: in instantiation of member function 'std::basic_string<unsigned char>::append' requested here
npm error  3302 |     append(__n - __sz, __c);
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:1303:84: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error  1303 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void resize(size_type __n) { resize(__n, value_type()); }
npm error       |                                                                                    ^
npm error ../argon2.cpp:29:14: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error    29 |         hash.resize(hash_length);
npm error       |              ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2538:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error  2538 |     traits_type::copy(
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../../node-addon-api/napi.h:14:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/functional:552:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/vector:325:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2221:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error  2221 |     traits_type::assign(__p[__newsz], value_type());
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:2134:5: note: in instantiation of member function 'std::basic_string<unsigned char>::__null_terminate_at' requested here
npm error  2134 |     __null_terminate_at(std::__to_address(__get_pointer()), __pos);
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:3304:5: note: in instantiation of member function 'std::basic_string<unsigned char>::__erase_to_end' requested here
npm error  3304 |     __erase_to_end(__n);
npm error       |     ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/string:1303:84: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error  1303 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void resize(size_type __n) { resize(__n, value_type()); }
npm error       |                                                                                    ^
npm error ../argon2.cpp:29:14: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error    29 |         hash.resize(hash_length);
npm error       |              ^
npm error /nix/store/rcaj8r2chyqccxgzf62d8j3iyyjxgs2x-libcxx-19.1.7-dev/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error       |                             ^
npm error 9 errors generated.
npm error make: *** [argon2.target.mk:138: Release/obj.target/argon2/argon2.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 24.6.0
npm error gyp ERR! command "/nix/store/w2q0xhh86pl755ba2gqksmcfgw9brbl3-nodejs-20.19.5/bin/node" "/private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source/node_modules/argon2
npm error gyp ERR! node -v v20.19.5
npm error gyp ERR! node-gyp -v v10.3.1
npm error gyp ERR! not ok
npm verbose cwd /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/source
npm verbose os Darwin 24.6.0
npm verbose node v20.19.5
npm verbose npm  v10.8.2
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /private/tmp/nix-build-bitwarden-cli-2025.4.0.drv-0/cache/_logs/2025-10-16T16_58_34_029Z-debug-0.log

Additional context

No response

System metadata

 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.6.0, macOS 15.6.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.28.5`
 - nixpkgs: `/nix/store/adg59bd9qazpsfms6gyaz4xhilnb320j-source`

Notify maintainers

@dotlambda


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions