🐷

【npm】デバッグまとめ

2024/05/29に公開

npm error path /app/node_modules/re2

エラーログ

+ docker-compose -f /home/runner/work/***/***/scripts/develop/docker-compose.yml exec -T *** npm install sharp
npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm error code 1
npm error path /app/node_modules/re2
npm error command failed
npm error command sh -c install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || npm run rebuild
npm error Trying https://github.com/uhop/node-re2/releases/download/1.20.1/linux-x64-127.br ...
npm error Trying https://github.com/uhop/node-re2/releases/download/1.20.1/linux-x64-127.gz ...
npm error Building locally ...
npm error
npm error > re2@1.20.1 rebuild
npm error > node-gyp rebuild
npm error
npm error make: Entering directory '/app/node_modules/re2/build'
npm error   CXX(target) Release/obj.target/re2/lib/addon.o
npm error make: Leaving directory '/app/node_modules/re2/build'
npm error
npm error > re2@1.20.1 rebuild
npm error > node-gyp rebuild
npm error
npm error make: Entering directory '/app/node_modules/re2/build'
npm error   CXX(target) Release/obj.target/re2/lib/addon.o
npm error make: Leaving directory '/app/node_modules/re2/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@9.4.0
npm error gyp info using node@22.2.0 | linux | x64
npm error (node:92) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
npm error gyp http GET https://nodejs.org/download/release/v22.2.0/node-v22.2.0-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v22.2.0/node-v22.2.0-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v22.2.0/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v22.2.0/SHASUMS256.txt
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args   '/app/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   '/app/node_modules/re2/build/config.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/app/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/root/.cache/node-gyp/22.2.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=/root/.cache/node-gyp/22.2.0',
npm error gyp info spawn args   '-Dnode_gyp_dir=/app/node_modules/node-gyp',
npm error gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/22.2.0/<(target_arch)/node.lib',
npm error gyp info spawn args   '-Dmodule_root_dir=/app/node_modules/re2',
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/./wrapped_re2.h:4,
npm error                  from ../lib/addon.cc:1:
npm error ../../nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)':
npm error ../../nan/nan.h:2546:19: error: no matching function for call to 'v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&)'
npm error  2546 |   tpl->SetAccessor(
npm error       |   ~~~~~~~~~~~~~~~~^
npm error  2547 |       name
npm error       |       ~~~~         
npm error  2548 |     , getter_
npm error       |     ~~~~~~~~~      
npm error  2549 |     , setter_
npm error       |     ~~~~~~~~~      
npm error  2550 |     , obj
npm error       |     ~~~~~          
npm error  2551 |     , settings
npm error       |     ~~~~~~~~~~     
npm error  2552 |     , attribute
npm error       |     ~~~~~~~~~~~    
npm error  2553 | #if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
npm error       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error  2554 |     , signature
npm error       |     ~~~~~~~~~~~    
npm error  2555 | #endif
npm error       | ~~~~~~             
npm error  2556 |   );
npm error       |   ~                
npm error In file included from /root/.cache/node-gyp/22.2.0/include/node/v8-function.h:15,
npm error                  from /root/.cache/node-gyp/22.2.0/include/node/v8.h:33,
npm error                  from /root/.cache/node-gyp/22.2.0/include/node/node.h:73,
npm error                  from ../../nan/nan.h:60:
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1049:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1049 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1052:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1052 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1055:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1055 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1058:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1058 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error ../../nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)':
npm error ../../nan/nan.h:2592:19: error: no matching function for call to 'v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&)'
npm error  2592 |   tpl->SetAccessor(
npm error       |   ~~~~~~~~~~~~~~~~^
npm error  2593 |       name
npm error       |       ~~~~         
npm error  2594 |     , getter_
npm error       |     ~~~~~~~~~      
npm error  2595 |     , setter_
npm error       |     ~~~~~~~~~      
npm error  2596 |     , obj
npm error       |     ~~~~~          
npm error  2597 |     , settings
npm error       |     ~~~~~~~~~~     
npm error  2598 |     , attribute
npm error       |     ~~~~~~~~~~~    
npm error  2599 |   );
npm error       |   ~                
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1049:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1049 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1052:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1052 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1055:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1055 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1058:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1058 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error In file included from /root/.cache/node-gyp/22.2.0/include/node/v8-array-buffer.h:12,
npm error                  from /root/.cache/node-gyp/22.2.0/include/node/v8.h:24:
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h: In instantiation of 'v8::Local<T>::Local(v8::Local<S>) [with S = v8::Data; T = v8::Value]':
npm error ../../nan/nan_callbacks_12_inl.h:175:53:   required from here
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h:269:42: error: static assertion failed: type check
npm error   269 |     static_assert(std::is_base_of<T, S>::value, "type check");
npm error       |                                          ^~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h:269:42: note: 'std::integral_constant<bool, false>::value' evaluates to false
npm error make: *** [re2.target.mk:226: Release/obj.target/re2/lib/addon.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.onExit (/app/node_modules/node-gyp/lib/build.js:203:23)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Linux 6.5.0-1021-azure
npm error gyp ERR! command "/usr/local/bin/node" "/app/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /app/node_modules/re2
npm error gyp ERR! node -v v22.2.0
npm error gyp ERR! node-gyp -v v9.4.0
npm error gyp ERR! not ok 
npm error node:internal/process/promises:389
npm error       new UnhandledPromiseRejection(reason);
npm error       ^
npm error
npm error UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".
npm error     at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
npm error     at processPromiseRejections (node:internal/process/promises:470:17)
npm error     at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
npm error   code: 'ERR_UNHANDLED_REJECTION'
npm error }
npm error
npm error Node.js v22.2.0
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@9.4.0
npm error gyp info using node@22.2.0 | linux | x64
npm error (node:133) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args   '/app/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   '/app/node_modules/re2/build/config.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/app/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/root/.cache/node-gyp/22.2.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=/root/.cache/node-gyp/22.2.0',
npm error gyp info spawn args   '-Dnode_gyp_dir=/app/node_modules/node-gyp',
npm error gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/22.2.0/<(target_arch)/node.lib',
npm error gyp info spawn args   '-Dmodule_root_dir=/app/node_modules/re2',
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/./wrapped_re2.h:4,
npm error                  from ../lib/addon.cc:1:
npm error ../../nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)':
npm error ../../nan/nan.h:2546:19: error: no matching function for call to 'v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&)'
npm error  2546 |   tpl->SetAccessor(
npm error       |   ~~~~~~~~~~~~~~~~^
npm error  2547 |       name
npm error       |       ~~~~         
npm error  2548 |     , getter_
npm error       |     ~~~~~~~~~      
npm error  2549 |     , setter_
npm error       |     ~~~~~~~~~      
npm error  2550 |     , obj
npm error       |     ~~~~~          
npm error  2551 |     , settings
npm error       |     ~~~~~~~~~~     
npm error  2552 |     , attribute
npm error       |     ~~~~~~~~~~~    
npm error  2553 | #if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
npm error       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error  2554 |     , signature
npm error       |     ~~~~~~~~~~~    
npm error  2555 | #endif
npm error       | ~~~~~~             
npm error  2556 |   );
npm error       |   ~                
npm error In file included from /root/.cache/node-gyp/22.2.0/include/node/v8-function.h:15,
npm error                  from /root/.cache/node-gyp/22.2.0/include/node/v8.h:33,
npm error                  from /root/.cache/node-gyp/22.2.0/include/node/node.h:73,
npm error                  from ../../nan/nan.h:60:
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1049:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1049 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1052:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1052 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1055:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1055 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1058:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1058 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error ../../nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)':
npm error ../../nan/nan.h:2592:19: error: no matching function for call to 'v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&)'
npm error  2592 |   tpl->SetAccessor(
npm error       |   ~~~~~~~~~~~~~~~~^
npm error  2593 |       name
npm error       |       ~~~~         
npm error  2594 |     , getter_
npm error       |     ~~~~~~~~~      
npm error  2595 |     , setter_
npm error       |     ~~~~~~~~~      
npm error  2596 |     , obj
npm error       |     ~~~~~          
npm error  2597 |     , settings
npm error       |     ~~~~~~~~~~     
npm error  2598 |     , attribute
npm error       |     ~~~~~~~~~~~    
npm error  2599 |   );
npm error       |   ~                
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1049:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1049 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1052:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1052 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1055:8: note: candidate: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)'
npm error  1055 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-template.h:1058:61: note:   no known conversion for argument 5 from 'v8::AccessControl' to 'v8::PropertyAttribute'
npm error  1058 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error In file included from /root/.cache/node-gyp/22.2.0/include/node/v8-array-buffer.h:12,
npm error                  from /root/.cache/node-gyp/22.2.0/include/node/v8.h:24:
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h: In instantiation of 'v8::Local<T>::Local(v8::Local<S>) [with S = v8::Data; T = v8::Value]':
npm error ../../nan/nan_callbacks_12_inl.h:175:53:   required from here
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h:269:42: error: static assertion failed: type check
npm error   269 |     static_assert(std::is_base_of<T, S>::value, "type check");
npm error       |                                          ^~~~~
npm error /root/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h:269:42: note: 'std::integral_constant<bool, false>::value' evaluates to false
npm error make: *** [re2.target.mk:226: Release/obj.target/re2/lib/addon.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.onExit (/app/node_modules/node-gyp/lib/build.js:203:23)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Linux 6.5.0-1021-azure
npm error gyp ERR! command "/usr/local/bin/node" "/app/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /app/node_modules/re2
npm error gyp ERR! node -v v22.2.0
npm error gyp ERR! node-gyp -v v9.4.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-05-28T22_05_04_484Z-debug-0.log

対処法

image: node:latest
↓
image: node:18.20

nodeのDockerイメージのバージョンを下げる


cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync.

エラーログ

Run npm ci
npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! 
npm ERR! Missing: bootstrap@^5.1.3
npm ERR! Missing: i18next@^21.8.10
npm ERR! Missing: react-bootstrap@^2.4.0
npm ERR! Missing: react-i18next@^11.17.2
npm ERR! Missing: @types/bootstrap@^5.1.12
npm ERR! Missing: @types/node@^18.0.0
npm ERR! 
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-06-18T07_18_02_417Z-debug.log
Error: Process completed with exit code 1.

対処法

指示通りlockファイルをupdateすればOK

Discussion