Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

445
Visualizações
Error when trying to npm install -g @aws-amplify/cli

new to this, I'm trying to install aws amplify from the command line and it keeps throwing me an err messages: I tried sudo, tried the safe route to no avail. I'm new to node and understanding dependencies etc. and not sure what I've done wrong!

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: graphql@14.7.0
npm ERR! node_modules/@aws-amplify/cli/node_modules/graphql
npm ERR!   graphql@"^14.5.8" from @aws-amplify/amplify-category-api@1.1.10
npm ERR!   node_modules/@aws-amplify/cli/node_modules/@aws-amplify/amplify-category-api
npm ERR!     @aws-amplify/amplify-category-api@"1.1.10" from @aws-amplify/cli@7.6.8
npm ERR!     node_modules/@aws-amplify/cli
npm ERR!       @aws-amplify/cli@"*" from the root project
npm ERR!     @aws-amplify/amplify-category-api@"1.1.10" from amplify-container-hosting@2.4.10
npm ERR!     node_modules/@aws-amplify/cli/node_modules/amplify-container-hosting
npm ERR!       amplify-container-hosting@"2.4.10" from @aws-amplify/cli@7.6.8
npm ERR!       node_modules/@aws-amplify/cli
npm ERR!         @aws-amplify/cli@"*" from the root project
npm ERR!   graphql@"^14.5.8" from @aws-amplify/graphql-auth-transformer@0.5.7
npm ERR!   node_modules/@aws-amplify/cli/node_modules/@aws-amplify/graphql-auth-transformer
npm ERR!     @aws-amplify/graphql-auth-transformer@"0.5.7" from @aws-amplify/cli@7.6.8
npm ERR!     node_modules/@aws-amplify/cli
npm ERR!       @aws-amplify/cli@"*" from the root project
npm ERR!     @aws-amplify/graphql-auth-transformer@"0.5.7" from amplify-provider-awscloudformation@5.8.7
npm ERR!     node_modules/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation
npm ERR!       amplify-provider-awscloudformation@"5.8.7" from @aws-amplify/cli@7.6.8
npm ERR!       node_modules/@aws-amplify/cli
npm ERR!         @aws-amplify/cli@"*" from the root project
npm ERR!       2 more (@aws-amplify/amplify-category-api, amplify-util-mock)
npm ERR!     1 more (@aws-amplify/graphql-relational-transformer)
npm ERR!   88 more (amplify-app, amplify-codegen, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^15.0.0" from relay-compiler@12.0.0
npm ERR! node_modules/@aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin/node_modules/@graphql-codegen/visitor-plugin-common/node_modules/relay-compiler
npm ERR!   relay-compiler@"12.0.0" from @graphql-tools/relay-operation-optimizer@6.4.1
npm ERR!   node_modules/@aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin/node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-tools/relay-operation-optimizer
npm ERR!     @graphql-tools/relay-operation-optimizer@"^6.3.7" from @graphql-codegen/visitor-plugin-common@2.5.2
npm ERR!     node_modules/@aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin/node_modules/@graphql-codegen/visitor-plugin-common
npm ERR!       @graphql-codegen/visitor-plugin-common@"^2.5.1" from amplify-codegen-appsync-model-plugin@1.24.4
npm ERR!       node_modules/@aws-amplify/cli/node_modules/amplify-codegen-appsync-model-plugin
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

run npm install -g npm@latest

and after that try installing amplify-cli again.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda