Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm workspace will be affected by package-lock #115

Open
cklwblove opened this issue Jan 29, 2023 · 0 comments
Open

pnpm workspace will be affected by package-lock #115

cklwblove opened this issue Jan 29, 2023 · 0 comments

Comments

@cklwblove
Copy link
Owner

问题

 ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE  Package name mismatch found while reading {"integrity":"sha512-PQO8sDIJ8SIwipTPiR71kJQCKQYB5NGImbOviK8K+kg5xkNSYXLBupuX9QhatFowrsvo9Hj8WgArg3W7ijNAQw==","registry":"https://registry.npmmirror.com/","tarball":"https://registry.npmmirror.com/@babel/traverse/-/traverse-7.17.9.tgz"} from the store. This means that the lockfile is broken. Expected package: @babel/traverse@7.17.10. Actual package in the store by the given integrity: @babel/traverse@7.17.9.

解决方案

pnpm 安装的包有损坏,获取 store 的存储位置(pnpm store path)并删除它

rm -rf  $(pnpm store path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant