本地pnpm版本与 git 仓库中要求的pnpm版本不一致,解决办法
【问题解决】本地pnpm版本与packageManager中pnpm版本不一致_if you want to bypass this version check, you can -CSDN博客
使用 uniBest 创建项目 pnpm create unibest
选择了demo模板,想看下下demo中各种用法,创建成功后进入项目 pnpm i
时候报错:
ERR_PNPM_BAD_PM_VERSION This project is configured to use v8.15.1 of pnpm. Your current pnpm is v9.1.4
If you want to bypass this version check, you can set the "package-manager-strict" configuration to "false" or set the "COREPACK_ENABLE_STRICT" environment variable to "0"
发现项目下的 .npmrc
配置文件,直接按里面添加一条 package-manager-strict=false
就解决了