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

Bug: pnpm install 出错 #5198

Open
5 tasks done
ramus-gif opened this issue Dec 20, 2024 · 1 comment
Open
5 tasks done

Bug: pnpm install 出错 #5198

ramus-gif opened this issue Dec 20, 2024 · 1 comment

Comments

@ramus-gif
Copy link

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

MAC OS  sonoma 14.3
Node V23.4.0

Relevant log output

No response

Validations

@mynetfan
Copy link
Collaborator

This project is configured to use yarn because /Users/ramus/package.json has a "packageManager" field
这个消息告诉你,你的 /Users/ramus/package.json中配置了packageManager,指定了yarn作为包管理器。而本项目需要使用pnpm

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

2 participants