You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to upgrade my node from 18 to 20, but I get this error when I do npm install
npm install
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated npmlog@5.0.1: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
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 gauge@3.0.2: This package is no longer supported.
npm error code 1
npm error path /Users/gui/Progetti/redacted/node_modules/fast-text
npm error command failed
npm error command sh -c node-gyp rebuild
npm error CXX(target) Release/obj.target/fasttext/lib/src/args.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/dictionary.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/fasttext.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/matrix.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/model.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/productquantizer.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/qmatrix.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/utils.o
npm error CXX(target) Release/obj.target/fasttext/lib/src/vector.o
npm error CXX(target) Release/obj.target/fasttext/src/nodeArgument.o
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@20.14.0 | darwin | arm64
npm error gyp info find Python using Python version 3.12.0 found at "/Library/Frameworks/Python.framework/Versions/3.12/bin/python3"
npm error gyp info spawn /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/gui/.nvm/versions/node/v20.14.0/lib/node_modules/npm/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 '/Users/gui/Progetti/redacted/node_modules/fast-text/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/gui/.nvm/versions/node/v20.14.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/gui/Library/Caches/node-gyp/20.14.0/include/node/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=/Users/gui/Library/Caches/node-gyp/20.14.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/gui/.nvm/versions/node/v20.14.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/gui/Library/Caches/node-gyp/20.14.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/gui/Progetti/redacted/node_modules/fast-text',
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 info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ../lib/src/args.cc:80:23: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int ai = 2; ai < args.size(); ai += 2) {
npm error ~~ ^ ~~~~~~~~~~~
npm error 1 warning generated.
npm error ../lib/src/dictionary.cc:152:52: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
npm error for (size_t j = i, n = 1; j < word.size() && n <= args_->maxn; n++) {
npm error ~ ^ ~~~~~~~~~~~
npm error ../lib/src/dictionary.cc:157:13: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
npm error if (n >= args_->minn && !(n == 1 && (i == 0 || j == word.size()))) {
npm error ~ ^ ~~~~~~~~~~~
npm error ../lib/src/dictionary.cc:171:52: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
npm error for (size_t j = i, n = 1; j < word.size() && n <= args_->maxn; n++) {
npm error ~ ^ ~~~~~~~~~~~
npm error ../lib/src/dictionary.cc:176:13: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
npm error if (n >= args_->minn && !(n == 1 && (i == 0 || j == word.size()))) {
npm error ~ ^ ~~~~~~~~~~~
npm error ../lib/src/dictionary.cc:185:24: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
npm error for (size_t i = 0; i < size_; i++) {
npm error ~ ^ ~~~~~
npm error ../lib/src/dictionary.cc:273:24: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
npm error for (size_t i = 0; i < size_; i++) {
npm error ~ ^ ~~~~~
npm error ../lib/src/dictionary.cc:290:25: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t i = 0; i < hashes.size(); i++) {
npm error ~ ^ ~~~~~~~~~~~~~
npm error ../lib/src/dictionary.cc:292:31: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t j = i + 1; j < hashes.size() && j < i + n; j++) {
npm error ~ ^ ~~~~~~~~~~~~~
npm error ../lib/src/dictionary.cc:467:25: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t i = 0; i < words_.size(); i++) {
npm error ~ ^ ~~~~~~~~~~~~~
npm error ../lib/src/dictionary.cc:468:47: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error if (getType(i) == entry_type::label || (j < words.size() && words[j] == i)) {
npm error ~ ^ ~~~~~~~~~~~~
npm error 10 warnings generated.
npm error ../lib/src/fasttext.cc:67:21: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int i = 0; i < ngrams.size(); i ++) {
npm error ~ ^ ~~~~~~~~~~~~~
npm error ../lib/src/fasttext.cc:275:35: warning: comparison of integers of different signs: 'const int32_t' (aka 'const int') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
npm error return eosid ==i1 || (eosid != i2 && norms[i1] > norms[i2]);
npm error ~~~~~ ^ ~~
npm error ../lib/src/fasttext.cc:275:20: warning: comparison of integers of different signs: 'const int32_t' (aka 'const int') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
npm error return eosid ==i1 || (eosid != i2 && norms[i1] > norms[i2]);
npm error ~~~~~ ^ ~~
npm error ../lib/src/fasttext.cc:290:40: warning: comparison of integers of different signs: 'const size_t' (aka 'const unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
npm error if (qargs.cutoff > 0 && qargs.cutoff < input_->m_) {
npm error ~~~~~~~~~~~~ ^ ~~~~~~~~~~
npm error ../lib/src/fasttext.cc:295:24: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (auto i = 0; i < idx.size(); i++) {
npm error ~ ^ ~~~~~~~~~~
npm error ../lib/src/fasttext.cc:337:25: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t w = 0; w < line.size(); w++) {
npm error ~ ^ ~~~~~~~~~~~
npm error ../lib/src/fasttext.cc:341:41: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error if (c != 0 && w + c >= 0 && w + c < line.size()) {
npm error ~~~~~ ^ ~~~~~~~~~~~
npm error ../lib/src/fasttext.cc:353:25: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t w = 0; w < line.size(); w++) {
npm error ~ ^ ~~~~~~~~~~~
npm error ../lib/src/fasttext.cc:357:41: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error if (c != 0 && w + c >= 0 && w + c < line.size()) {
npm error ~~~~~ ^ ~~~~~~~~~~~
npm error ../lib/src/fasttext.cc:435:27: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t i = 0; i < line.size(); i++) {
npm error ~ ^ ~~~~~~~~~~~
npm error ../lib/src/fasttext.cc:468:25: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t i = 0; i < ngrams.size(); i++) {
npm error ~ ^ ~~~~~~~~~~~~~
npm error ../lib/src/fasttext.cc:615:24: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
npm error for (size_t i = 0; i < n; i++) {
npm error ~ ^ ~
npm error ../lib/src/fasttext.cc:620:26: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
npm error for (size_t j = 0; j < dim; j++) {
npm error ~ ^ ~~~
npm error ../lib/src/fasttext.cc:630:24: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
npm error for (size_t i = 0; i < n; i++) {
npm error ~ ^ ~
npm error ../lib/src/fasttext.cc:633:26: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
npm error for (size_t j = 0; j < dim; j++) {
npm error ~ ^ ~~~
npm error 15 warnings generated.
npm error ../lib/src/model.cc:86:25: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (int32_t i = 0; i < pathToRoot.size(); i++) {
npm error ~ ^ ~~~~~~~~~~~~~~~~~
npm error ../lib/src/model.cc:173:21: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
npm error if (heap.size() == k && std_log(output[i]) < heap.front().first) {
npm error ~~~~~~~~~~~ ^ ~
npm error ../lib/src/model.cc:178:21: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
npm error if (heap.size() > k) {
npm error ~~~~~~~~~~~ ^ ~
npm error ../lib/src/model.cc:188:19: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
npm error if (heap.size() == k && score < heap.front().first) {
npm error ~~~~~~~~~~~ ^ ~
npm error ../lib/src/model.cc:195:21: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
npm error if (heap.size() > k) {
npm error ~~~~~~~~~~~ ^ ~
npm error ../lib/src/model.cc:237:24: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
npm error assert(counts.size() == osz_);
npm error ~~~~~~~~~~~~~ ^ ~~~~
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert'
npm error (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0)
npm error ^
npm error 6 warnings generated.
npm error ../lib/src/productquantizer.cc:208:20: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
npm error for (auto i=0; i < centroids_.size(); i++) {
npm error ~ ^ ~~~~~~~~~~~~~~~~~
npm error 1 warning generated.
npm error In file included from ../src/nodeArgument.cc:8:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/node.h:73:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8.h:24:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-array-buffer.h:12:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-local-handle.h:12:
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)
npm error ^
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error PER_ISOLATE_EXTERNAL_POINTER_TAGS(CHECK_NON_SHARED_EXTERNAL_POINTER_TAGS)
npm error ^
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:693:61: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
npm error ^
npm error , ""
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:694:55: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error static_assert(kJSObjectType < kLastJSApiObjectType);
npm error ^
npm error , ""
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-internal.h:695:63: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error static_assert(kFirstJSApiObjectType < kLastJSApiObjectType);
npm error ^
npm error , ""
npm error In file included from ../src/nodeArgument.cc:8:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/node.h:73:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8.h:24:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-object.h:9:
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/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 error template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
npm error ~~~~~^~~~~~~~~~~~~~~~~~~~~
npm error is_lvalue_reference
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24:29: note: 'is_lvalue_reference' declared here
npm error struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {};
npm error ^
npm error In file included from ../src/nodeArgument.cc:8:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/node.h:73:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8.h:24:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-object.h:9:
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-maybe.h:106:69: error: expected '(' for function-style cast or type construction
npm error template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
npm error ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/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 error template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
npm error ~~~~~^~~~~~~~~~~~~~~~~~~~~
npm error is_lvalue_reference
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24:29: note: 'is_lvalue_reference' declared here
npm error struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {};
npm error ^
npm error In file included from ../src/nodeArgument.cc:8:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/node.h:73:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8.h:24:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-object.h:9:
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-maybe.h:123:67: error: expected '(' for function-style cast or type construction
npm error template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
npm error ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
npm error In file included from ../src/nodeArgument.cc:8:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/node.h:73:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8.h:33:
npm error In file included from /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-function.h:11:
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-function-callback.h:151:66: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error kReturnValueDefaultValueIndex - kReturnValueIndex);
npm error ^
npm error , ""
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/v8-function-callback.h:153:50: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
npm error kIsolateIndex - kReturnValueIndex);
npm error ^
npm error , ""
npm error In file included from ../src/nodeArgument.cc:8:
npm error /Users/gui/Library/Caches/node-gyp/20.14.0/include/node/node.h:688:8: error: no template named 'optional' in namespace 'std'
npm error std::optional<std::string> builder_script_path;
npm error ~~~~~^
npm error ../src/nodeArgument.cc:207:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
npm error result->Set(
npm error ^~~~~~~~~~~
npm error 23 warnings and 5 errors generated.
npm error make: *** [Release/obj.target/fasttext/src/nodeArgument.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> (/Users/gui/.nvm/versions/node/v20.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Darwin 23.5.0
npm error gyp ERR! command "/Users/gui/.nvm/versions/node/v20.14.0/bin/node" "/Users/gui/.nvm/versions/node/v20.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /Users/gui/Progetti/redacted/node_modules/fast-text
npm error gyp ERR! node -v v20.14.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /Users/gui/.npm/_logs/2024-06-04T08_21_35_197Z-debug-0.log
The text was updated successfully, but these errors were encountered:
I'm trying to upgrade my node from 18 to 20, but I get this error when I do
npm install
The text was updated successfully, but these errors were encountered: