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. #4628

Closed
coldrainc opened this issue Apr 27, 2022 · 11 comments
Closed

pnpm workspace will be affected by package-lock. #4628

coldrainc opened this issue Apr 27, 2022 · 11 comments

Comments

@coldrainc
Copy link

coldrainc commented Apr 27, 2022

pnpm version: 6.32

Code to reproduce the issue:

pnpm workspace will be affected by package-lock.json

ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE
the lockfile is broken! a full installation will be performed in an attempt to fix it

Expected behavior:

pnpm install success

Actual behavior:

error the lockfile is broken! a full installation will be performed in an attempt to fix it

Additional information:

  • node -v prints: v16.8.0
  • Windows, macOS, or Linux?: macos
@zkochan
Copy link
Member

zkochan commented Apr 28, 2022

What version of pnpm are you using? I believe, this was fixed. Maybe your store is broken. Try to remove it. To get the store location, run pnpm store path.

@coldrainc
Copy link
Author

coldrainc commented Apr 28, 2022 via email

@zkochan
Copy link
Member

zkochan commented May 4, 2022

I did not get your response.

@songyazhao
Copy link

I have the same problem.

Looks like it has something to do with babel/babel#14525.

 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 version: 6.32.7

@songyazhao
Copy link

songyazhao commented May 7, 2022

I have the same problem.

Looks like it has something to do with babel/babel#14525.

 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 version: 6.32.7

After running rm -rf $(pnpm store path), now work.

@coldrainc
Copy link
Author

coldrainc commented May 7, 2022

What version of pnpm are you using? I believe, this was fixed. Maybe your store is broken. Try to remove it. To get the store location, run pnpm store path.

thanks, solved my problem. remove store.

@moyanfaker
Copy link

moyanfaker commented May 9, 2022

你用的是什么版本的pnpm?我相信,这是固定的。也许你的商店坏了。尝试删除它。要获取商店位置,请运行pnpm store path.
good

@superiums
Copy link

superiums commented Jun 11, 2022

i have the same problem

 ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE  Package name mismatch found while reading {"integrity":"sha512-iiXaOL2wSbnSY4qg0mFPWJHL9iwyEsoNYwaHF2w58/fsVAQJlj+KUfFAFZu+nzbz+b7dUprJEAc+O9vhHHhQTA==","registry":"https://registry.npm.taobao.org/","tarball":"https://registry.npmmirror.com/@types/superagent/-/superagent-4.1.14.tgz"} from the store. This means that the lockfile is broken. Expected package: @types/superagent@4.1.14. Actual package in the store by the given integrity: @types/superagent@4.1.15.
 ERR_PNPM_STORE_ADD_FAILURE  Some packages have not been added correctly

is there any way to remove the special package instead of remove all ?

i've tried pnpm store add @types/superagent@4.1.14 but not work.

pnpm version is 7.1.7

@coldrainc
Copy link
Author

coldrainc commented Jun 11, 2022 via email

@lusess123
Copy link

i have the same problem too
 ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE  Package name mismatch found while reading {"integrity":"sha512-iiXaOL2wSbnSY4qg0mFPWJHL9iwyEsoNYwaHF2w58/fsVAQJlj+KUfFAFZu+nzbz+b7dUprJEAc+O9vhHHhQTA==","registry":"https://registry.npm.taobao.org/","tarball":"https://registry.npmmirror.com/@types/superagent/-/superagent-4.1.14.tgz"} from the store. This means that the lockfile is broken. Expected package: @types/superagent@4.1.14. Actual package in the store by the given integrity: @types/superagent@4.1.15.
i've tried pnpm store add @types/superagent@4.1.14 but not work.
pnpm version is 7.9.5

@XinChou16
Copy link

pnpm 8.9.2, also broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants