-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
@alicloud/sls20201230 其中的子依赖 lz4 已经不在维护了。
目前我们只能是用 node18 安装依赖,然后使用 node20 运行。
m error code 1
npm error path /Users/mac/work/nodeclub/node_modules/lz4
npm error command failed
npm error command sh -c node-gyp rebuild
npm error CXX(target) Release/obj.target/lz4/lib/binding/lz4_binding.o
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | darwin | arm64
npm error gyp info find Python using Python version 3.13.3 found at "/opt/homebrew/opt/[email protected]/bin/python3.13"
npm error gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.13
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/mac/work/nodeclub/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/mac/work/nodeclub/node_modules/lz4/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/mac/work/nodeclub/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/mac/Library/Caches/node-gyp/20.19.5/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/mac/Library/Caches/node-gyp/20.19.5',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/mac/work/nodeclub/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/mac/Library/Caches/node-gyp/20.19.5/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/mac/work/nodeclub/node_modules/lz4',
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 In file included from ../lib/binding/lz4_binding.cc:4:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/node.h:73:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8.h:23:
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/cppgc/common.h:15:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
npm error 15 | enum class EmbedderStackState {
npm error | ^
npm error In file included from ../lib/binding/lz4_binding.cc:4:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/node.h:73:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8.h:24:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-array-buffer.h:12:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-local-handle.h:12:
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:30:8: error: unknown type name 'constexpr'
npm error 30 | static constexpr Address kNullAddress = 0;
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:30:25: error: expected ';' after top level declarator
npm error 30 | static constexpr Address kNullAddress = 0;
npm error | ^
npm error | ;
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:32:1: error: unknown type name 'constexpr'
npm error 32 | constexpr int KB = 1024;
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:33:1: error: unknown type name 'constexpr'
npm error 33 | constexpr int MB = KB * 1024;
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:34:1: error: unknown type name 'constexpr'
npm error 34 | constexpr int GB = MB * 1024;
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:70:1: error: unknown type name 'constexpr'
npm error 70 | constexpr intptr_t kIntptrAllBitsSet = intptr_t{-1};
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:70:19: error: expected ';' after top level declarator
npm error 70 | constexpr intptr_t kIntptrAllBitsSet = intptr_t{-1};
npm error | ^
npm error | ;
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:71:1: error: unknown type name 'constexpr'
npm error 71 | constexpr uintptr_t kUintptrAllBitsSet =
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:71:20: error: expected ';' after top level declarator
npm error 71 | constexpr uintptr_t kUintptrAllBitsSet =
npm error | ^
npm error | ;
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:79:10: error: unknown type name 'constexpr'
npm error 79 | static constexpr intptr_t kSmiMinValue =
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:79:28: error: expected ';' at end of declaration list
npm error 79 | static constexpr intptr_t kSmiMinValue =
npm error | ^
npm error | ;
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:81:10: error: unknown type name 'constexpr'
npm error 81 | static constexpr intptr_t kSmiMaxValue = -(kSmiMinValue + 1);
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:81:28: error: expected ';' at end of declaration list
npm error 81 | static constexpr intptr_t kSmiMaxValue = -(kSmiMinValue + 1);
npm error | ^
npm error | ;
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:88:20: error: unknown type name 'constexpr'
npm error 88 | V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
npm error | ^
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:88:46: error: unknown type name 'intptr_t'; did you mean '::intptr_t'?
npm error 88 | V8_INLINE static constexpr bool IsValidSmi(intptr_t value) {
npm error | ^~~~~~~~
npm error | ::intptr_t
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_intptr_t.h:32:33: note: '::intptr_t' declared here
npm error 32 | typedef __darwin_intptr_t intptr_t;
npm error | ^
npm error In file included from ../lib/binding/lz4_binding.cc:4:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/node.h:73:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8.h:24:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-array-buffer.h:12:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-local-handle.h:12:
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:92:25: error: unknown type name 'uintptr_t'; did you mean '::uintptr_t'?
npm error 92 | return (static_cast<uintptr_t>(value) -
npm error | ^~~~~~~~~
npm error | ::uintptr_t
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h:34:33: note: '::uintptr_t' declared here
npm error 34 | typedef unsigned long uintptr_t;
npm error | ^
npm error In file included from ../lib/binding/lz4_binding.cc:4:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/node.h:73:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8.h:24:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-array-buffer.h:12:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-local-handle.h:12:
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:93:25: error: unknown type name 'uintptr_t'; did you mean '::uintptr_t'?
npm error 93 | static_cast<uintptr_t>(kSmiMinValue)) <=
npm error | ^~~~~~~~~
npm error | ::uintptr_t
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h:34:33: note: '::uintptr_t' declared here
npm error 34 | typedef unsigned long uintptr_t;
npm error | ^
npm error In file included from ../lib/binding/lz4_binding.cc:4:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/node.h:73:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8.h:24:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-array-buffer.h:12:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-local-handle.h:12:
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:94:25: error: unknown type name 'uintptr_t'; did you mean '::uintptr_t'?
npm error 94 | (static_cast<uintptr_t>(kSmiMaxValue) -
npm error | ^~~~~~~~~
npm error | ::uintptr_t
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h:34:33: note: '::uintptr_t' declared here
npm error 34 | typedef unsigned long uintptr_t;
npm error | ^
npm error In file included from ../lib/binding/lz4_binding.cc:4:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/node.h:73:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8.h:24:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-array-buffer.h:12:
npm error In file included from /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-local-handle.h:12:
npm error /Users/mac/Library/Caches/node-gyp/20.19.5/include/node/v8-internal.h:95:25: error: unknown type name 'uintptr_t'; did you mean '::uintptr_t'?
npm error 95 | static_cast<uintptr_t>(kSmiMinValue));
npm error | ^~~~~~~~~
npm error | ::uintptr_t
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h:34:33: note: '::uintptr_t' declared here
npm error 34 | typedef unsigned long uintptr_t;
npm error | ^
npm error fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm error 1 warning and 20 errors generated.
npm error make: *** [Release/obj.target/lz4/lib/binding/lz4_binding.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/mac/work/nodeclub/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 23.5.0
npm error gyp ERR! command "/Users/mac/.nvm/versions/node/v20.19.5/bin/node" "/Users/mac/work/nodeclub/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /Users/mac/work/nodeclub/node_modules/lz4
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 error A complete log of this run can be found in: /Users/mac/.npm/_logs/2025-10-14T10_37_25_776Z-debug-0.log
Metadata
Metadata
Assignees
Labels
No labels