Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.4K
Views
error Ocurrió un error inesperado: "Se requiere hash de confirmación"

cuando uso este comando para agregar eslint( @vue/cli 4.5.15 ):

 vue add eslint

muestra un error como este:

 WARN There are uncommitted changes in the current repository, it's recommended to commit or stash them first. ? Still proceed? Yes 📦 Installing @vue/cli-plugin-eslint... yarn add v1.22.17 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... info If you think this is a bug, please open a bug report with the information provided in "/Users/xiaoqiangjiang/source/reddwarf/frontend/crx-selection-translate/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. error An unexpected error occurred: "Commit hash required". ERROR command failed: yarn add @vue/cli-plugin-eslint@~4.5.0 -D

que debo hacer para solucionar este problema? Ya intenté eliminar el archivo de bloqueo, pero aún no solucioné este problema. la versión del nodo es v16.13.2 .

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Esto generalmente sucede cuando usa npm install en un proyecto de yarn, luego yarn install cuando se da cuenta de que npm no funcionó. De alguna manera yarn.lock se corrompe. Esto es lo que hago:

 rm package-lock.json rm yarn.lock git checkout <old-hash> yarn.lock
about 4 years ago · Juan Pablo Isaza Report

0

Para mí hice lo siguiente y funciona:

 $ rm package-lock.json # remove the package-lock.json file $ yarn install # install successfully and update the yarn.lock file
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!