-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Trying to install the package on my mac and get the following error:
RagTest % npm i @llm-tools/embedjs
npm WARN deprecated @aws-sdk/signature-v4@3.374.0: This package has moved to @smithy/signature-v4
npm WARN deprecated @aws-sdk/protocol-http@3.374.0: This package has moved to @smithy/protocol-http
npm WARN deprecated text-encoding@0.7.0: no longer maintained
npm ERR! code 1
npm ERR! path /Users/apapf/MyCode/RagTest/node_modules/mmmagic
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/apprentice.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/apptype.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/ascmagic.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/cdf.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/cdf_time.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/compress.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/der.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/encoding.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/fsmagic.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/funcs.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/is_tar.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/magic.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/print.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/readcdf.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/readelf.o
npm ERR! CC(target) Release/obj.target/libmagic/deps/libmagic/src/softmagic.o
npm ERR! LIBTOOL-STATIC Release/magic.a
npm ERR! CXX(target) Release/obj.target/magic/src/binding.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@20.3.1 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.11.4 found at "/opt/homebrew/opt/python@3.11/bin/python3.11"
npm ERR! gyp info spawn /opt/homebrew/opt/python@3.11/bin/python3.11
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/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/apapf/MyCode/RagTest/node_modules/mmmagic/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/apapf/Library/Caches/node-gyp/20.3.1/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/apapf/Library/Caches/node-gyp/20.3.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/apapf/Library/Caches/node-gyp/20.3.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/apapf/MyCode/RagTest/node_modules/mmmagic',
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/binding.cc:1:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/node.h:73:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8.h:24:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-array-buffer.h:12:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-local-handle.h:12:
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)
npm ERR! ^
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! PER_ISOLATE_EXTERNAL_POINTER_TAGS(CHECK_NON_SHARED_EXTERNAL_POINTER_TAGS)
npm ERR! ^
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:693:61: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
npm ERR! ^
npm ERR! , ""
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:694:55: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! static_assert(kJSObjectType < kLastJSApiObjectType);
npm ERR! ^
npm ERR! , ""
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-internal.h:695:63: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! static_assert(kFirstJSApiObjectType < kLastJSApiObjectType);
npm ERR! ^
npm ERR! , ""
npm ERR! In file included from ../src/binding.cc:1:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/node.h:73:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8.h:24:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-array-buffer.h:13:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-object.h:9:
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-maybe.h:106:45: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
npm ERR! template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
npm ERR! ~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! is_lvalue_reference
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24:29: note: 'is_lvalue_reference' declared here
npm ERR! struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {};
npm ERR! ^
npm ERR! In file included from ../src/binding.cc:1:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/node.h:73:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8.h:24:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-array-buffer.h:13:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-object.h:9:
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-maybe.h:106:69: error: expected '(' for function-style cast or type construction
npm ERR! template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-maybe.h:123:43: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
npm ERR! template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
npm ERR! ~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! is_lvalue_reference
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24:29: note: 'is_lvalue_reference' declared here
npm ERR! struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {};
npm ERR! ^
npm ERR! In file included from ../src/binding.cc:1:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/node.h:73:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8.h:24:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-array-buffer.h:13:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-object.h:9:
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-maybe.h:123:67: error: expected '(' for function-style cast or type construction
npm ERR! template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
npm ERR! In file included from ../src/binding.cc:1:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/node.h:73:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8.h:33:
npm ERR! In file included from /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-function.h:11:
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-function-callback.h:151:66: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! kReturnValueDefaultValueIndex - kReturnValueIndex);
npm ERR! ^
npm ERR! , ""
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-function-callback.h:153:50: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm ERR! kIsolateIndex - kReturnValueIndex);
npm ERR! ^
npm ERR! , ""
npm ERR! In file included from ../src/binding.cc:3:
npm ERR! ../../nan/nan.h:700:39: warning: 'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() to influence the GC schedule. [-Wdeprecated-declarations]
npm ERR! return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
npm ERR! ^
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8-isolate.h:1291:3: note: 'IdleNotificationDeadline' has been explicitly marked deprecated here
npm ERR! V8_DEPRECATE_SOON(
npm ERR! ^
npm ERR! /Users/apapf/Library/Caches/node-gyp/20.3.1/include/node/v8config.h:550:39: note: expanded from macro 'V8_DEPRECATE_SOON'
npm ERR! # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
npm ERR! ^
npm ERR! 23 warnings and 4 errors generated.
npm ERR! make: *** [Release/obj.target/magic/src/binding.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 (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 23.5.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/20.3.1_1/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/apapf/MyCode/RagTest/node_modules/mmmagic
npm ERR! gyp ERR! node -v v20.3.1
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working