3
respostas

Problema para executar npm start

Olá,

Estou com problema para subir api do servidor. Já dei npm install conforme explicado no video. Quando eu dou npm start, aparece o erro comforme estpa em baixo

The serve command requires to be run in an Angular project, but a project definition could not be found.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! alurapic@0.0.0 start: `ng serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the alurapic@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\psantosp\AppData\Roaming\npm-cache\_logs\2020-04-08T19_20_41_153Z-debug.log
3 respostas

Oi Paulo,

Você está executando o npm start dentro do projeto em si ?

Sim fiz isso

Bom, talvez você precise atualizar o angular/cli.

Tente:

ng update @angular/cli @angular/core

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