Open hkjeffchan opened 1 month ago
Mac OS: 14.6.1 (23G93) Node Version: v22.8.0 (with npm 10.8.2)
npm error code 1 npm error path /Applications/MAMP/htdocs/scaa/node_modules/opencc npm error command failed npm error command sh -c node-pre-gyp install --fallback-to-build || node-pre-gyp rebuild npm error COPY Release/hk2s.json npm error COPY Release/hk2t.json npm error COPY Release/jp2t.json npm error COPY Release/s2hk.json npm error COPY Release/s2t.json npm error COPY Release/s2tw.json npm error COPY Release/s2twp.json npm error COPY Release/t2hk.json npm error COPY Release/t2jp.json npm error COPY Release/t2s.json npm error COPY Release/t2tw.json npm error COPY Release/tw2s.json npm error COPY Release/tw2sp.json npm error COPY Release/tw2t.json npm error TOUCH Release/obj.target/configs.stamp npm error CXX(target) Release/obj.target/opencc/node/marisa.o npm error CXX(target) Release/obj.target/opencc/node/opencc.o npm error SOLINK_MODULE(target) Release/opencc.node npm error ACTION binding_gyp_dicts_target_STCharacters Release/STCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_STPhrases Release/STPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TSCharacters Release/TSCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_TSPhrases Release/TSPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariants Release/TWVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariantsRevPhrases Release/TWVariantsRevPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_JPVariants Release/JPVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWPhrases_txt Release/TWPhrases.txt npm error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1) npm error [opencc] Removing "/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release" npm error npm error COPY Release/hk2s.json npm error COPY Release/hk2t.json npm error COPY Release/jp2t.json npm error COPY Release/s2hk.json npm error COPY Release/s2t.json npm error COPY Release/s2tw.json npm error COPY Release/s2twp.json npm error COPY Release/t2hk.json npm error COPY Release/t2jp.json npm error COPY Release/t2s.json npm error COPY Release/t2tw.json npm error COPY Release/tw2s.json npm error COPY Release/tw2sp.json npm error COPY Release/tw2t.json npm error TOUCH Release/obj.target/configs.stamp npm error CXX(target) Release/obj.target/opencc/node/marisa.o npm error CXX(target) Release/obj.target/opencc/node/opencc.o npm error SOLINK_MODULE(target) Release/opencc.node npm error ACTION binding_gyp_dicts_target_STCharacters Release/STCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_STPhrases Release/STPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TSCharacters Release/TSCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_TSPhrases Release/TSPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariants Release/TWVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariantsRevPhrases Release/TWVariantsRevPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_JPVariants Release/JPVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWPhrases_txt Release/TWPhrases.txt npm error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1) npm error node-pre-gyp info it worked if it ends with ok npm error node-pre-gyp info using node-pre-gyp@1.0.11 npm error node-pre-gyp info using node@22.8.0 | darwin | arm64 npm error (node:17542) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. npm error (Use node --trace-deprecation ... to show where the warning was created) npm error node-pre-gyp info check checked for "/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node" (not found) npm error node-pre-gyp http GET https://github.com/BYVoid/OpenCC/releases/download/1.1.8/opencc-v1.1.8-node-v127-darwin-arm64.tar.gz npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/BYVoid/OpenCC/releases/download/1.1.8/opencc-v1.1.8-node-v127-darwin-arm64.tar.gz npm error node-pre-gyp WARN Pre-built binaries not installable for opencc@1.1.8 and node@22.8.0 (node-v127 ABI, unknown) (falling back to source compile with node-gyp) npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/BYVoid/OpenCC/releases/download/1.1.8/opencc-v1.1.8-node-v127-darwin-arm64.tar.gz 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@22.8.0 | darwin | arm64 npm error gyp info ok 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@22.8.0 | darwin | arm64 npm error gyp info find Python using Python version 3.12.1 found at "/usr/local/bin/python3" npm error gyp http GET https://nodejs.org/download/release/v22.8.0/node-v22.8.0-headers.tar.gz npm error gyp http 200 https://nodejs.org/download/release/v22.8.0/node-v22.8.0-headers.tar.gz npm error gyp http GET https://nodejs.org/download/release/v22.8.0/SHASUMS256.txt npm error gyp http 200 https://nodejs.org/download/release/v22.8.0/SHASUMS256.txt npm error gyp info spawn /usr/local/bin/python3 npm error gyp info spawn args [ npm error gyp info spawn args '/usr/local/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 '/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/jeffchan/Library/Caches/node-gyp/22.8.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/jeffchan/Library/Caches/node-gyp/22.8.0', npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/Users/jeffchan/Library/Caches/node-gyp/22.8.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/Applications/MAMP/htdocs/scaa/node_modules/opencc', 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 ok 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@22.8.0 | darwin | arm64 npm error gyp info spawn make npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:28: npm error In file included from ../src/DictGroup.hpp:24: npm error In file included from ../src/Dict.hpp:22: npm error In file included from ../src/DictEntry.hpp:22: npm error ../src/Segments.hpp:56:32: warning: 'iterator<std::input_iterator_tag, const char >' is deprecated [-Wdeprecated-declarations] npm error 56 | class iterator : public std::iterator<std::input_iterator_tag, const char> { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::input_iterator_tag, const char *>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 102 | : public std::iterator<std::random_access_iterator_tag npm error | ^ npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:548:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<false, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here npm error 548 | typedef typename GenericMemberIterator<false,Encoding,Allocator>::Iterator MemberIterator; //!< Member iterator for iterating in object. npm error | ^ npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here npm error 49 | if (!doc.HasMember(name)) { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType; npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 102 | : public std::iterator<std::random_access_iterator_tag npm error | ^ npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:549:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<true, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here npm error 549 | typedef typename GenericMemberIterator<true,Encoding,Allocator>::Iterator ConstMemberIterator; //!< Constant member iterator for iterating in object. npm error | ^ npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here npm error 49 | if (!doc.HasMember(name)) { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType; npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error 5 warnings generated. npm error /bin/sh: python: command not found npm error make: ** [Release/TWPhrases.txt] Error 127 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. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm error gyp ERR! System Darwin 23.6.0 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node" "--module_name=opencc" "--module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127" npm error gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc npm error gyp ERR! node -v v22.8.0 npm error gyp ERR! node-gyp -v v10.1.0 npm error gyp ERR! not ok npm error node-pre-gyp ERR! build error npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1) npm error node-pre-gyp ERR! stack at ChildProcess. (/Applications/MAMP/htdocs/scaa/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16) npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5) npm error node-pre-gyp ERR! System Darwin 23.6.0 npm error node-pre-gyp ERR! command "/usr/local/bin/node" "/Applications/MAMP/htdocs/scaa/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" npm error node-pre-gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc npm error node-pre-gyp ERR! node -v v22.8.0 npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11 npm error node-pre-gyp ERR! not ok npm error node-pre-gyp info it worked if it ends with ok npm error node-pre-gyp info using node-pre-gyp@1.0.11 npm error node-pre-gyp info using node@22.8.0 | darwin | arm64 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@22.8.0 | darwin | arm64 npm error gyp info ok 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@22.8.0 | darwin | arm64 npm error gyp info find Python using Python version 3.12.1 found at "/usr/local/bin/python3" npm error gyp info spawn /usr/local/bin/python3 npm error gyp info spawn args [ npm error gyp info spawn args '/usr/local/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 '/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/jeffchan/Library/Caches/node-gyp/22.8.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/jeffchan/Library/Caches/node-gyp/22.8.0', npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/Users/jeffchan/Library/Caches/node-gyp/22.8.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/Applications/MAMP/htdocs/scaa/node_modules/opencc', 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 ok 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@22.8.0 | darwin | arm64 npm error gyp info spawn make npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:28: npm error In file included from ../src/DictGroup.hpp:24: npm error In file included from ../src/Dict.hpp:22: npm error In file included from ../src/DictEntry.hpp:22: npm error ../src/Segments.hpp:56:32: warning: 'iterator<std::input_iterator_tag, const char >' is deprecated [-Wdeprecated-declarations] npm error 56 | class iterator : public std::iterator<std::input_iterator_tag, const char> { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator.h:23:29: note: 'iterator<std::input_iterator_tag, const char >' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 102 | : public std::iterator<std::random_access_iterator_tag npm error | ^ npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:548:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<false, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here npm error 548 | typedef typename GenericMemberIterator<false,Encoding,Allocator>::Iterator MemberIterator; //!< Member iterator for iterating in object. npm error | ^ npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here npm error 49 | if (!doc.HasMember(name)) { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType; npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 102 | : public std::iterator<std::random_access_iterator_tag npm error | ^ npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:549:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<true, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here npm error 549 | typedef typename GenericMemberIterator<true,Encoding,Allocator>::Iterator ConstMemberIterator; //!< Constant member iterator for iterating in object. npm error | ^ npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here npm error 49 | if (!doc.HasMember(name)) { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType; npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated__)) npm error | ^ npm error 5 warnings generated. npm error /bin/sh: python: command not found npm error make: *** [Release/TWPhrases.txt] Error 127 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. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm error gyp ERR! System Darwin 23.6.0 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node" "--module_name=opencc" "--module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127" npm error gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc npm error gyp ERR! node -v v22.8.0 npm error gyp ERR! node-gyp -v v10.1.0 npm error gyp ERR! not ok npm error node-pre-gyp ERR! build error npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1) npm error node-pre-gyp ERR! stack at ChildProcess. (/Applications/MAMP/htdocs/scaa/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16) npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5) npm error node-pre-gyp ERR! System Darwin 23.6.0 npm error node-pre-gyp ERR! command "/usr/local/bin/node" "/Applications/MAMP/htdocs/scaa/node_modules/.bin/node-pre-gyp" "rebuild" npm error node-pre-gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc npm error node-pre-gyp ERR! node -v v22.8.0 npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11 npm error node-pre-gyp ERR! not ok
punycode
node --trace-deprecation ...
make
I'm having the same issue here, any guidance would be appreciated! 🙏
npm error /bin/sh: python: command not found
Mac OS: 14.6.1 (23G93) Node Version: v22.8.0 (with npm 10.8.2)
npm error code 1 npm error path /Applications/MAMP/htdocs/scaa/node_modules/opencc npm error command failed npm error command sh -c node-pre-gyp install --fallback-to-build || node-pre-gyp rebuild npm error COPY Release/hk2s.json npm error COPY Release/hk2t.json npm error COPY Release/jp2t.json npm error COPY Release/s2hk.json npm error COPY Release/s2t.json npm error COPY Release/s2tw.json npm error COPY Release/s2twp.json npm error COPY Release/t2hk.json npm error COPY Release/t2jp.json npm error COPY Release/t2s.json npm error COPY Release/t2tw.json npm error COPY Release/tw2s.json npm error COPY Release/tw2sp.json npm error COPY Release/tw2t.json npm error TOUCH Release/obj.target/configs.stamp npm error CXX(target) Release/obj.target/opencc/node/marisa.o npm error CXX(target) Release/obj.target/opencc/node/opencc.o npm error SOLINK_MODULE(target) Release/opencc.node npm error ACTION binding_gyp_dicts_target_STCharacters Release/STCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_STPhrases Release/STPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TSCharacters Release/TSCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_TSPhrases Release/TSPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariants Release/TWVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariantsRevPhrases Release/TWVariantsRevPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_JPVariants Release/JPVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWPhrases_txt Release/TWPhrases.txt npm error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1) npm error [opencc] Removing "/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release" npm error npm error COPY Release/hk2s.json npm error COPY Release/hk2t.json npm error COPY Release/jp2t.json npm error COPY Release/s2hk.json npm error COPY Release/s2t.json npm error COPY Release/s2tw.json npm error COPY Release/s2twp.json npm error COPY Release/t2hk.json npm error COPY Release/t2jp.json npm error COPY Release/t2s.json npm error COPY Release/t2tw.json npm error COPY Release/tw2s.json npm error COPY Release/tw2sp.json npm error COPY Release/tw2t.json npm error TOUCH Release/obj.target/configs.stamp npm error CXX(target) Release/obj.target/opencc/node/marisa.o npm error CXX(target) Release/obj.target/opencc/node/opencc.o npm error SOLINK_MODULE(target) Release/opencc.node npm error ACTION binding_gyp_dicts_target_STCharacters Release/STCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_STPhrases Release/STPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TSCharacters Release/TSCharacters.ocd2 npm error ACTION binding_gyp_dicts_target_TSPhrases Release/TSPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariants Release/TWVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWVariantsRevPhrases Release/TWVariantsRevPhrases.ocd2 npm error ACTION binding_gyp_dicts_target_JPVariants Release/JPVariants.ocd2 npm error ACTION binding_gyp_dicts_target_TWPhrases_txt Release/TWPhrases.txt npm error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1) npm error node-pre-gyp info it worked if it ends with ok npm error node-pre-gyp info using node-pre-gyp@1.0.11 npm error node-pre-gyp info using node@22.8.0 | darwin | arm64 npm error (node:17542) [DEP0040] DeprecationWarning: The (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Darwin 23.6.0
npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node" "--module_name=opencc" "--module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127"
npm error gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc
npm error gyp ERR! node -v v22.8.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
npm error node-pre-gyp ERR! stack at ChildProcess. (/Applications/MAMP/htdocs/scaa/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:520:28)
npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm error node-pre-gyp ERR! System Darwin 23.6.0
npm error node-pre-gyp ERR! command "/usr/local/bin/node" "/Applications/MAMP/htdocs/scaa/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm error node-pre-gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc
npm error node-pre-gyp ERR! node -v v22.8.0
npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm error node-pre-gyp ERR! not ok
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using node-pre-gyp@1.0.11
npm error node-pre-gyp info using node@22.8.0 | darwin | arm64
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@22.8.0 | darwin | arm64
npm error gyp info ok
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@22.8.0 | darwin | arm64
npm error gyp info find Python using Python version 3.12.1 found at "/usr/local/bin/python3"
npm error gyp info spawn /usr/local/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/local/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 '/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/jeffchan/Library/Caches/node-gyp/22.8.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/jeffchan/Library/Caches/node-gyp/22.8.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/jeffchan/Library/Caches/node-gyp/22.8.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Applications/MAMP/htdocs/scaa/node_modules/opencc',
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 ok
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@22.8.0 | darwin | arm64
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../node/opencc.cc:9:
npm error In file included from ../src/Config.cpp:28:
npm error In file included from ../src/DictGroup.hpp:24:
npm error In file included from ../src/Dict.hpp:22:
npm error In file included from ../src/DictEntry.hpp:22:
npm error ../src/Segments.hpp:56:32: warning: 'iterator<std::input_iterator_tag, const char >' is deprecated [-Wdeprecated-declarations]
npm error 56 | class iterator : public std::iterator<std::input_iterator_tag, const char> {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator.h:23:29: note: 'iterator<std::input_iterator_tag, const char >' has been explicitly marked deprecated here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
npm error | ^
npm error In file included from ../node/opencc.cc:9:
npm error In file included from ../src/Config.cpp:23:
npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations]
npm error 102 | : public std::iterator<std::random_access_iterator_tag
npm error | ^
npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:548:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<false, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here
npm error 548 | typedef typename GenericMemberIterator<false,Encoding,Allocator>::Iterator MemberIterator; //!< Member iterator for iterating in object.
npm error | ^
npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here
npm error 49 | if (!doc.HasMember(name)) {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
npm error | ^
npm error In file included from ../node/opencc.cc:9:
npm error In file included from ../src/Config.cpp:23:
npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations]
npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType;
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
npm error | ^
npm error In file included from ../node/opencc.cc:9:
npm error In file included from ../src/Config.cpp:23:
npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations]
npm error 102 | : public std::iterator<std::random_access_iterator_tag
npm error | ^
npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:549:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<true, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here
npm error 549 | typedef typename GenericMemberIterator<true,Encoding,Allocator>::Iterator ConstMemberIterator; //!< Constant member iterator for iterating in object.
npm error | ^
npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here
npm error 49 | if (!doc.HasMember(name)) {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated))
npm error | ^
npm error In file included from ../node/opencc.cc:9:
npm error In file included from ../src/Config.cpp:23:
npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations]
npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType;
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator {
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated__))
npm error | ^
npm error 5 warnings generated.
npm error /bin/sh: python: command not found
npm error make: *** [Release/TWPhrases.txt] Error 127
npm error gyp ERR! build error
npm error gyp ERR! stack Error: (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Darwin 23.6.0
npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node" "--module_name=opencc" "--module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127"
npm error gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc
npm error gyp ERR! node -v v22.8.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --module=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node --module_name=opencc --module_path=/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
npm error node-pre-gyp ERR! stack at ChildProcess. (/Applications/MAMP/htdocs/scaa/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:520:28)
npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm error node-pre-gyp ERR! System Darwin 23.6.0
npm error node-pre-gyp ERR! command "/usr/local/bin/node" "/Applications/MAMP/htdocs/scaa/node_modules/.bin/node-pre-gyp" "rebuild"
npm error node-pre-gyp ERR! cwd /Applications/MAMP/htdocs/scaa/node_modules/opencc
npm error node-pre-gyp ERR! node -v v22.8.0
npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm error node-pre-gyp ERR! not ok
punycode
module is deprecated. Please use a userland alternative instead. npm error (Usenode --trace-deprecation ...
to show where the warning was created) npm error node-pre-gyp info check checked for "/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/Release/opencc.node" (not found) npm error node-pre-gyp http GET https://github.com/BYVoid/OpenCC/releases/download/1.1.8/opencc-v1.1.8-node-v127-darwin-arm64.tar.gz npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/BYVoid/OpenCC/releases/download/1.1.8/opencc-v1.1.8-node-v127-darwin-arm64.tar.gz npm error node-pre-gyp WARN Pre-built binaries not installable for opencc@1.1.8 and node@22.8.0 (node-v127 ABI, unknown) (falling back to source compile with node-gyp) npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/BYVoid/OpenCC/releases/download/1.1.8/opencc-v1.1.8-node-v127-darwin-arm64.tar.gz 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@22.8.0 | darwin | arm64 npm error gyp info ok 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@22.8.0 | darwin | arm64 npm error gyp info find Python using Python version 3.12.1 found at "/usr/local/bin/python3" npm error gyp http GET https://nodejs.org/download/release/v22.8.0/node-v22.8.0-headers.tar.gz npm error gyp http 200 https://nodejs.org/download/release/v22.8.0/node-v22.8.0-headers.tar.gz npm error gyp http GET https://nodejs.org/download/release/v22.8.0/SHASUMS256.txt npm error gyp http 200 https://nodejs.org/download/release/v22.8.0/SHASUMS256.txt npm error gyp info spawn /usr/local/bin/python3 npm error gyp info spawn args [ npm error gyp info spawn args '/usr/local/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 '/Applications/MAMP/htdocs/scaa/node_modules/opencc/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/jeffchan/Library/Caches/node-gyp/22.8.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/jeffchan/Library/Caches/node-gyp/22.8.0', npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/Users/jeffchan/Library/Caches/node-gyp/22.8.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/Applications/MAMP/htdocs/scaa/node_modules/opencc', 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 ok 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@22.8.0 | darwin | arm64 npm error gyp info spawn make npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:28: npm error In file included from ../src/DictGroup.hpp:24: npm error In file included from ../src/Dict.hpp:22: npm error In file included from ../src/DictEntry.hpp:22: npm error ../src/Segments.hpp:56:32: warning: 'iterator<std::input_iterator_tag, const char >' is deprecated [-Wdeprecated-declarations] npm error 56 | class iterator : public std::iterator<std::input_iterator_tag, const char> { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::input_iterator_tag, const char *>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 102 | : public std::iterator<std::random_access_iterator_tag npm error | ^ npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:548:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<false, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here npm error 548 | typedef typename GenericMemberIterator<false,Encoding,Allocator>::Iterator MemberIterator; //!< Member iterator for iterating in object. npm error | ^ npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here npm error 49 | if (!doc.HasMember(name)) { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType; npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:102:19: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 102 | : public std::iterator<std::random_access_iterator_tag npm error | ^ npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:549:22: note: in instantiation of template class 'rapidjson::GenericMemberIterator<true, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>' requested here npm error 549 | typedef typename GenericMemberIterator<true,Encoding,Allocator>::Iterator ConstMemberIterator; //!< Constant member iterator for iterating in object. npm error | ^ npm error ../src/Config.cpp:49:13: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<>>' requested here npm error 49 | if (!doc.HasMember(name)) { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error In file included from ../node/opencc.cc:9: npm error In file included from ../src/Config.cpp:23: npm error ../deps/rapidjson-1.1.0/rapidjson/document.h:110:18: warning: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' is deprecated [-Wdeprecated-declarations] npm error 110 | typedef std::iterator<std::random_access_iterator_tag,ValueType> BaseType; npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/iterator.h:23:29: note: 'iterator<std::random_access_iterator_tag, const rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<>>>' has been explicitly marked deprecated here npm error 23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator { npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' npm error 1022 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED npm error | ^ npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED' npm error 995 | # define _LIBCPP_DEPRECATED attribute((deprecated)) npm error | ^ npm error 5 warnings generated. npm error /bin/sh: python: command not found npm error make: ** [Release/TWPhrases.txt] Error 127 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.make
failed with exit code: 2 npm error gyp ERR! stack at ChildProcess.