algoliasearch-client-javascript
algoliasearch-client-javascript copied to clipboard
Error installing
Error running ``:
npm ERR! code 1
npm ERR! path /Users/gregory/git2/algoliasearch-client-javascript/node_modules/iltorb
npm ERR! command failed
npm ERR! command sh -c node ./scripts/install.js || node-gyp rebuild
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/common/dictionary.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/common/transform.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/dec/bit_reader.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/dec/decode.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/dec/huffman.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/dec/state.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/backward_references.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/backward_references_hq.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/bit_cost.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/block_splitter.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/brotli_bit_stream.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/cluster.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/compress_fragment.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/compress_fragment_two_pass.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/dictionary_hash.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/encode.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/encoder_dict.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/entropy_encode.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/histogram.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/literal_cost.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/memory.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/metablock.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/static_dict.o
npm ERR! CC(target) Release/obj.target/iltorb/brotli/c/enc/utf8_util.o
npm ERR! CXX(target) Release/obj.target/iltorb/src/common/allocator.o
npm ERR! info install installing standalone, skipping download.
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 2.7.18 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
npm ERR! gyp http GET https://nodejs.org/download/release/v17.3.0/node-v17.3.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v17.3.0/node-v17.3.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v17.3.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v17.3.0/SHASUMS256.txt
npm ERR! (node:24328) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/gregory/git2/algoliasearch-client-javascript/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/gregory/git2/algoliasearch-client-javascript/node_modules/iltorb/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/gregory/git2/algoliasearch-client-javascript/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/gregory/Library/Caches/node-gyp/17.3.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/gregory/Library/Caches/node-gyp/17.3.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/gregory/git2/algoliasearch-client-javascript/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/gregory/Library/Caches/node-gyp/17.3.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/gregory/git2/algoliasearch-client-javascript/node_modules/iltorb',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/common/allocator.cc:1:
npm ERR! In file included from ../../nan/nan.h:2884:
npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer'
npm ERR! data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR! ~~~~~~~~^
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/iltorb/src/common/allocator.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/gregory/git2/algoliasearch-client-javascript/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 21.1.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/17.3.0/bin/node" "/Users/gregory/git2/algoliasearch-client-javascript/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/gregory/git2/algoliasearch-client-javascript/node_modules/iltorb
npm ERR! gyp ERR! node -v v17.3.0
npm ERR! gyp ERR! node-gyp -v v5.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/gregory/.npm/_logs/2022-02-04T03_43_16_070Z-debug-0.log
``
[2022-02-04T03_43_16_070Z-debug-0.log](https://github.com/algolia/algoliasearch-client-javascript/files/7999903/2022-02-04T03_43_16_070Z-debug-0.log)
`
Hi @gregoryjobox, can you clarify where you get this error, with which node versions, what you were trying to do etc.?