timer/promises module not found

0

I'm using a pipline to build my project create with aws lex bot; I used to work fine, but lately I faced this problem; the pipeline stops in the build stage; the problem is that

[Container] 2023/09/04 12:43:15 Running command npm install -g npm /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js npm WARN notsup Unsupported engine for npm@10.0.0: wanted: {"node":"^18.17.0 || >=20.5.0"} (current: {"node":"14.21.3","npm":"6.14.18"}) npm WARN notsup Not compatible with your version of node/npm: npm@10.0.0

  • npm@10.0.0 added 121 packages from 50 contributors, removed 315 packages and updated 143 packages in 10.284s

[Container] 2023/09/04 12:43:36 Running command npx npm ci /usr/local/lib/node_modules/npm/lib/es6/validate-engines.js:31 throw err ^

Error: Cannot find module 'timers/promises'

I tested the node version with CMD and it returns 18.17.1

ayoub
已提问 8 个月前63 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容