você parece não estar dependendo de “@ angular / core”. Este é um erro [fechado]

0

Estou com o erro abaixo ao executar o projeto angular 4.

you seem to not be depending on "@angular/core". This is an error.

por favor, encontrar a imagem abaixo para explicação detalhada:

Versões atuais: Cli Angular: 1.7.3 Nó: 8.10.0

Eutenteiestaopção:

rm-rfnode_modulesrmpackage-lock.jsonnpminstall

Estoucomerroabaixoaoexecutaroscomandosacima:

npmnoticecreatedalockfileaspackage-lock.json.Youshouldcommitthisfile.npmWARN@angular/[email protected]@angular/core@^5.0.0butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@angular/[email protected]@angular/common@^5.0.0butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@angular/[email protected]@angular/core@^5.0.0butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@angular/[email protected]@angular/common@^5.0.0butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@ng-bootstrap/[email protected]@angular/core@^5.0.2butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@ng-bootstrap/[email protected]@angular/common@^5.0.2butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@ng-bootstrap/[email protected]@angular/forms@^5.0.2butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@angular-devkit/[email protected]@angular-devkit/core@0.0.29butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARN@schematics/[email protected]@angular-devkit/schematics@0.0.34butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARNajv-keywords@3.1.0requiresapeerofajv@^6.0.0butnoneisinstalled.Youmustinstallpeerdependenciesyourself.npmWARNoptionalSKIPPINGOPTIONALDEPENDENCY:[email protected](node_modules/fsevents):npmWARNnotsupSKIPPINGOPTIONALDEPENDENCY:[email protected]:wanted{"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
por prashanth padala 22.03.2018 / 06:30

1 resposta

0

Eu obtive a solução executando o comando abaixo:

Exclua os módulos do nó, verifique se o arquivo package.json deve ter o @ angular / core e reinstale-o com npm i .

    
por prashanth padala 22.03.2018 / 13:37