เมื่อเรียกใช้yarn add --dev jestผมได้ข้อผิดพลาดที่ไม่ถูกต้องสมบูรณ์เมื่อดึงจากแคช
ผลผลิตเต็ม:
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.
ฉันลองลบออกnode_modulesแล้ววิ่งอีกครั้งyarn installและyarn add --dev jestไม่เป็นประโยชน์
ฉันจะแก้ไขได้อย่างไร
yarn cache cleanสำหรับแพคเกจทั่วโลกมีเทียบเท่ากับไม่มี การลบด้วยตนเอง~/.cache/yarnแก้ไขข้อผิดพลาด 'integrity integrity' สำหรับฉัน