ある日、コンテナをビルドしなおしてみるとエラーとなってコンテナが起動しない。
container_name | /usr/local/lib/node_modules/npm/lib/es6/validate-engines.js:31
container_name | throw err
container_name | ^
container_name |
container_name | Error: Cannot find module 'timers/promises'
container_name | Require stack:
container_name | - /usr/local/lib/node_modules/npm/node_modules/@npmcli/agent/lib/util.js
container_name | - /usr/local/lib/node_modules/npm/node_modules/@npmcli/agent/lib/index.js
container_name | - /usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/remote.js
container_name | - /usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/entry.js
container_name | - /usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/index.js
container_name | - /usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/fetch.js
container_name | - /usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/index.js
container_name | - /usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/index.js
container_name | - /usr/local/lib/node_modules/npm/lib/utils/replace-info.js
container_name | - /usr/local/lib/node_modules/npm/lib/utils/error-message.js
container_name | - /usr/local/lib/node_modules/npm/lib/utils/exit-handler.js
container_name | - /usr/local/lib/node_modules/npm/lib/cli-entry.js
container_name | - /usr/local/lib/node_modules/npm/lib/cli.js
container_name | - /usr/local/lib/node_modules/npm/bin/npm-cli.js
container_name | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
container_name | at Function.Module._load (internal/modules/cjs/loader.js:725:27)
container_name | at Module.require (internal/modules/cjs/loader.js:952:19)
container_name | at require (internal/modules/cjs/helpers.js:88:18)
container_name | at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/agent/lib/util.js:3:16)
container_name | at Module._compile (internal/modules/cjs/loader.js:1063:30)
container_name | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
container_name | at Module.load (internal/modules/cjs/loader.js:928:32)
container_name | at Function.Module._load (internal/modules/cjs/loader.js:769:14)
container_name | at Module.require (internal/modules/cjs/loader.js:952:19) {
container_name | code: 'MODULE_NOT_FOUND',
container_name | requireStack: [
container_name | '/usr/local/lib/node_modules/npm/node_modules/@npmcli/agent/lib/util.js',
container_name | '/usr/local/lib/node_modules/npm/node_modules/@npmcli/agent/lib/index.js',
container_name | '/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/remote.js',
container_name | '/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/entry.js',
container_name | '/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/index.js',
container_name | '/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/fetch.js',
container_name | '/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/index.js',
container_name | '/usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/index.js',
container_name | '/usr/local/lib/node_modules/npm/lib/utils/replace-info.js',
container_name | '/usr/local/lib/node_modules/npm/lib/utils/error-message.js',
container_name | '/usr/local/lib/node_modules/npm/lib/utils/exit-handler.js',
container_name | '/usr/local/lib/node_modules/npm/lib/cli-entry.js',
container_name | '/usr/local/lib/node_modules/npm/lib/cli.js',
container_name | '/usr/local/lib/node_modules/npm/bin/npm-cli.js'
container_name | ]
container_name | }
container_name exited with code 7
続きを読む