You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在拉取后,进行pnpm install时,出现以下信息:
ramus@baoxinniandeMacBook-Pro vue-vben-admin % pnpm install
/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22379
throw new UsageError(This project is configured to use ${result.spec.name} because ${result.target} has a "packageManager" field);
^
UsageError: This project is configured to use yarn because /Users/ramus/package.json has a "packageManager" field
at Engine.findProjectSpec (/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22379:21)
at async Engine.executePackageManagerRequest (/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22410:24)
at async Object.runMain (/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:23102:5) {
clipanion: { type: 'usage' }
}
This project is configured to use yarn because /Users/ramus/package.json has a "packageManager" field
这个消息告诉你,你的 /Users/ramus/package.json中配置了packageManager,指定了yarn作为包管理器。而本项目需要使用pnpm
Version
Vben Admin V5
Describe the bug?
在拉取后,进行pnpm install时,出现以下信息:
ramus@baoxinniandeMacBook-Pro vue-vben-admin % pnpm install
/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22379
throw new UsageError(
This project is configured to use ${result.spec.name} because ${result.target} has a "packageManager" field
);^
UsageError: This project is configured to use yarn because /Users/ramus/package.json has a "packageManager" field
at Engine.findProjectSpec (/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22379:21)
at async Engine.executePackageManagerRequest (/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22410:24)
at async Object.runMain (/opt/homebrew/Cellar/node/23.4.0/lib/node_modules/corepack/dist/lib/corepack.cjs:23102:5) {
clipanion: { type: 'usage' }
}
Reproduction
git clone https://github.com/anncwb/vue-vben-admin.git
System Info
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: