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:
downgrade pnpm to 6.23.6 ( npm install -g pnpm@6.23.6 )
open PR which removes this invalid string inside package.json
2条答案
按热度按时间txu3uszq1#
貌似是pnpm的bug,pnpm issue,回退版本到6.23.6可以解决这个问题。
npm install -g pnpm@6.23.6
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:
pnpm
to6.23.6
(npm install -g pnpm@6.23.6
)resolutions
object inside package.json is used by Yarn:https://classic.yarnpkg.com/en/docs/selective-version-resolutions/