vue-vben-admin 执行 pnpm install 报错 ERR_PNPM_INVALID_OVERRIDE_SELECTOR

7cwmlq89  于 2023-03-19  发布在  其他
关注(0)|答案(2)|浏览(837)

ERR_PNPM_INVALID_OVERRIDE_SELECTOR  Cannot parse the "//" selector in the overrides

txu3uszq

txu3uszq1#

貌似是pnpm的bug,pnpm issue,回退版本到6.23.6可以解决这个问题。
npm install -g pnpm@6.23.6

x7yiwoj4

x7yiwoj42#

That's not a pnpm bug, but "bug" inside package.json, which contains key-value as comment:
https://github.com/anncwb/vue-vben-admin/blob/b0a0cbcd6a67ed290dfd84c4e46af55ccf90132d/package.json#L150

So, there're two options:

  1. downgrade pnpm to 6.23.6 ( npm install -g pnpm@6.23.6 )
  2. open PR which removes this invalid string inside package.json

resolutions object inside package.json is used by Yarn:
https://classic.yarnpkg.com/en/docs/selective-version-resolutions/

相关问题