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
asked 8 months ago59 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions