Durante l'esecuzione yarn add --dev jest, ho ricevuto l' errore Integrità errata durante il recupero dalla cache .
Uscita completa:
tests (master)$ yarn add --dev jest
yarn add v1.19.0
info No lockfile found.
[1/4] Resolving packages...
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
[2/4] Fetching packages...
error Incorrect integrity when fetching from the cache
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Ho provato a rimuovere node_modules, rieseguito yarn installe yarn add --dev jestinutilmente.
Come posso risolvere questo problema?
yarn cache clean. La rimozione manuale ha~/.cache/yarnrisolto l'errore di "integrità errata" per me.