1
resposta

Mensagem de erro no terminal

Oi, pessoal. Estou na aula três do curso e fiz os códigos confome a orientação.

No entanto, aparece o seguinte erro no terminal quando eu tento fazer um teste para ver se tudo está ok.

(node:26001) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 1) (node:26001) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Poderiam me ajudar, por favor?

Obrigada!

1 resposta

Boa tarde cintia tudo bem!

olha uma dica, tente usar as versões das bibliotecas, e do node igual a que professora usa. isso irá reduzir bastante os erros. fiquei bastante tempo tentando descobrir um erro, e foi só instalar o chalk na versão (antiga) igual a da aula que funcionou.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software