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

1.1K
Visualizações
Yarn install Invariant Violation: debe tener una referencia resuelta

Estoy intentando crear una versión en Jenkins 2.150.1 y encuentro un error con la instalación de hilo: Invariant Violation: should have a resolved reference

La instalación funciona bien en mi máquina local con la misma configuración.

¿Alguien sabe cómo podría resolver esto?

 verbose 0.446 Checking for configuration file "/usr/.yarnrc". verbose 0.45 current time: 2019-06-05T03:51:11.266Z [1/4] Resolving packages... verbose 1.179 Performing "GET" request to "https://registry.yarnpkg.com/ember-cli-babel". verbose 1.286 Request "https://registry.yarnpkg.com/ember-cli-babel" finished with status code 200. warning Resolution field "ember-cli-babel@6.12.0" is incompatible with requested version "ember-cli-babel@^5.1.6" warning Resolution field "ember-cli-babel@6.12.0" is incompatible with requested version "ember-cli-babel@^5.1.6" warning Resolution field "ember-cli-babel@6.12.0" is incompatible with requested version "ember-cli-babel@^5.1.6" warning Resolution field "ember-cli-babel@6.12.0" is incompatible with requested version "ember-cli-babel@^5.1.6" verbose 1.435 Invariant Violation: should have a resolved reference at invariant (/opt/yarn/lib/cli.js:1296:15) at PackageRequest.resolveToExistingVersion (/opt/yarn/lib/cli.js:34819:51) at PackageResolver.resolvePackagesWithExistingVersions (/opt/yarn/lib/cli.js:60937:11) at /opt/yarn/lib/cli.js:60869:14 at Generator.next (<anonymous>) at step (/opt/yarn/lib/cli.js:92:30) at /opt/yarn/lib/cli.js:103:13 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) error An unexpected error occurred: "should have a resolved reference". info If you think this is a bug, please open a bug report with the information provided in "/usr/src/app/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. time="2019-06-05T03:51:12Z" level=fatal msg="build failed: building [myapp-client]: build artifact: running build: The command '/bin/sh c yarn --ignore-engines install --verbose' returned a non-zero code: 1" script returned exit code 1

Dockerfile relevante:

 FROM node:8.9.4-stretch as builder WORKDIR /usr/src/app COPY package.json . COPY .npmrc . COPY yarn.lock . COPY .bowerrc . COPY bower.json . RUN yarn cache clean RUN yarn --ignore-engines install --verbose COPY . . RUN yarn run build:production
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Descubrí que esto se debió a la versión de hilo del servidor CI.

Se degradó a la versión 1.3.2 localmente y se pudo replicar el problema.

Actualizado a yarn 1.16 y el problema desaparece.

Solución: actualizar hilo:

 sh "curl --compressed -o- -L https://yarnpkg.com/install.sh | sh"
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