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
gefragt vor 8 Monaten63 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen