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
Trying to install internet-message-parser on MacOS Monterey 12.5 but this package can't be compiled. I tried with both Node 19 and Node 21. Any advice? Let me know if you need more info.
❯ pnpm i internet-message-parser -D
imapflow is linked to /Users/alec/dev/foo/server/node_modules from /Users/alec/dev/foo/vendor/imapflow
WARN 2 deprecated subdependencies found: @npmcli/move-file@1.1.2, sourcemap-codec@1.4.8
.. | +73 +++++++
.. | Progress: resolved 432, reused 359, downloaded 0, added 0, done
../node_modules/.pnpm/iconv@3.0.1/node_modules/iconv: Running install script, done in 5.9s
../node_modules/.pnpm/re2-latin1@1.17.7/node_modules/re2-latin1: Running install script, failed in 5.8s
.../node_modules/re2-latin1 install$ install-from-cache --artifact build/Release/re2-latin1.node --host-var RE2…
│ Trying https://github.com/gene-hightower/node-re2/releases/download/1.17.7/darwin-x64-111.br ...
│ Trying https://github.com/gene-hightower/node-re2/releases/download/1.17.7/darwin-x64-111.gz ...
│ Building locally ...
│ > re2-latin1@1.17.7 rebuild
│ > node-gyp rebuild
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@8.4.1
│ gyp info using node@19.9.0 | darwin | x64
│ gyp info find Python using Python version 3.10.12 found at "/Users/alec/.pyenv/versions/3.10.12/bin/python3"
│ gyp info spawn /Users/alec/.pyenv/versions/3.10.12/bin/python3
│ gyp info spawn args [
│ gyp info spawn args '/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/gyp/…
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'make',
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/alec/dev/foo/node_modules/.pnpm/re2-latin1@1.17.7/node_modules/re2-latin1…
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/addo…
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/alec/Library/Caches/node-gyp/19.9.0/include/node/common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=/Users/alec/Library/Caches/node-gyp/19.9.0',
│ gyp info spawn args '-Dnode_gyp_dir=/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_module…
│ gyp info spawn args '-Dnode_lib_file=/Users/alec/Library/Caches/node-gyp/19.9.0/<(target_arch)/node.lib',
│ gyp info spawn args '-Dmodule_root_dir=/Users/alec/dev/foo/node_modules/.pnpm/re2-latin1@1.17.7/node_…
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│ CXX(target) Release/obj.target/re2/lib/addon.o
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:12:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-local-handle.h:12:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)
│ ^
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ PER_ISOLATE_EXTERNAL_POINTER_TAGS(CHECK_NON_SHARED_EXTERNAL_POINTER_TAGS)
│ ^
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:659:61: warning: 'static_assert' with n…
│ static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
│ ^
│ , ""
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:660:55: warning: 'static_assert' with n…
│ static_assert(kJSObjectType < kLastJSApiObjectType);
│ ^
│ , ""
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:661:63: warning: 'static_assert' with n…
│ static_assert(kFirstJSApiObjectType < kLastJSApiObjectType);
│ ^
│ , ""
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-object.h:9:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:106:45: error: no template named 'is_lvalu…
│ template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
│ ~~~~~^~~~~~~~~~~~~~~~~~~~~
│ is_lvalue_reference
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c+…
│ struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> { };
│ ^
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-object.h:9:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:106:69: error: expected '(' for function-s…
│ template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:123:43: error: no template named 'is_lvalu…
│ template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
│ ~~~~~^~~~~~~~~~~~~~~~~~~~~
│ is_lvalue_reference
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c+…
│ struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> { };
│ ^
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-object.h:9:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:123:67: error: expected '(' for function-s…
│ template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
│ 20 warnings and 4 errors generated.
│ make: *** [Release/obj.target/re2/lib/addon.o] Error 1
│ gyp ERR! build error
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.onExit (/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_m…
│ gyp ERR! stack at ChildProcess.emit (node:events:513:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
│ gyp ERR! System Darwin 21.6.0
│ gyp ERR! command "/Users/alec/.nvm/versions/node/v19.9.0/bin/node" "/Users/alec/dev/foo/node_modules/.p…
│ gyp ERR! cwd /Users/alec/dev/foo/node_modules/.pnpm/re2-latin1@1.17.7/node_modules/re2-latin1
│ gyp ERR! node -v v19.9.0
│ gyp ERR! node-gyp -v v8.4.1
│ gyp ERR! not ok
│ node:internal/process/promises:289
│ triggerUncaughtException(err, true /* fromPromise */);
│ ^
│ [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a ca…
│ code: 'ERR_UNHANDLED_REJECTION'
│ }
│ Node.js v19.9.0
│ > re2-latin1@1.17.7 rebuild
│ > node-gyp rebuild
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@8.4.1
│ gyp info using node@19.9.0 | darwin | x64
│ gyp info find Python using Python version 3.10.12 found at "/Users/alec/.pyenv/versions/3.10.12/bin/python3"
│ gyp info spawn /Users/alec/.pyenv/versions/3.10.12/bin/python3
│ gyp info spawn args [
│ gyp info spawn args '/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/gyp/…
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'make',
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/alec/dev/foo/node_modules/.pnpm/re2-latin1@1.17.7/node_modules/re2-latin1…
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/addo…
│ gyp info spawn args '-I',
│ gyp info spawn args '/Users/alec/Library/Caches/node-gyp/19.9.0/include/node/common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=/Users/alec/Library/Caches/node-gyp/19.9.0',
│ gyp info spawn args '-Dnode_gyp_dir=/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_module…
│ gyp info spawn args '-Dnode_lib_file=/Users/alec/Library/Caches/node-gyp/19.9.0/<(target_arch)/node.lib',
│ gyp info spawn args '-Dmodule_root_dir=/Users/alec/dev/foo/node_modules/.pnpm/re2-latin1@1.17.7/node_…
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│ CXX(target) Release/obj.target/re2/lib/addon.o
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:12:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-local-handle.h:12:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)
│ ^
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:477:30: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ PER_ISOLATE_EXTERNAL_POINTER_TAGS(CHECK_NON_SHARED_EXTERNAL_POINTER_TAGS)
│ ^
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:478:35: warning: 'static_assert' with n…
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:659:61: warning: 'static_assert' with n…
│ static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
│ ^
│ , ""
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:660:55: warning: 'static_assert' with n…
│ static_assert(kJSObjectType < kLastJSApiObjectType);
│ ^
│ , ""
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-internal.h:661:63: warning: 'static_assert' with n…
│ static_assert(kFirstJSApiObjectType < kLastJSApiObjectType);
│ ^
│ , ""
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-object.h:9:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:106:45: error: no template named 'is_lvalu…
│ template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
│ ~~~~~^~~~~~~~~~~~~~~~~~~~~
│ is_lvalue_reference
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c+…
│ struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> { };
│ ^
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-object.h:9:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:106:69: error: expected '(' for function-s…
│ template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:123:43: error: no template named 'is_lvalu…
│ template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
│ ~~~~~^~~~~~~~~~~~~~~~~~~~~
│ is_lvalue_reference
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c+…
│ struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> { };
│ ^
│ In file included from ../lib/addon.cc:1:
│ In file included from ../lib/./wrapped_re2.h:4:
│ In file included from ../../../../nan@2.19.0/node_modules/nan/nan.h:62:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/node.h:73:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8.h:24:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-object.h:9:
│ /Users/alec/Library/Caches/node-gyp/19.9.0/include/node/v8-maybe.h:123:67: error: expected '(' for function-s…
│ template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
│ 20 warnings and 4 errors generated.
│ make: *** [Release/obj.target/re2/lib/addon.o] Error 1
│ gyp ERR! build error
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.onExit (/Users/alec/dev/foo/node_modules/.pnpm/node-gyp@8.4.1/node_m…
│ gyp ERR! stack at ChildProcess.emit (node:events:513:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
│ gyp ERR! System Darwin 21.6.0
│ gyp ERR! command "/Users/alec/.nvm/versions/node/v19.9.0/bin/node" "/Users/alec/dev/foo/node_modules/.p…
│ gyp ERR! cwd /Users/alec/dev/foo/node_modules/.pnpm/re2-latin1@1.17.7/node_modules/re2-latin1
│ gyp ERR! node -v v19.9.0
│ gyp ERR! node-gyp -v v8.4.1
│ gyp ERR! not ok
The text was updated successfully, but these errors were encountered:
Trying to install
internet-message-parser
on MacOS Monterey 12.5 but this package can't be compiled. I tried with both Node 19 and Node 21. Any advice? Let me know if you need more info.The text was updated successfully, but these errors were encountered: