在新版的青龙面板自带的依赖安装中总是安装失败,产看日志发现:


ERR_PNPM_REGISTRIES_MISMATCH This modules directory was created using the following registries configuration: {“default”:“https://registry.npmjs.org/”}. The current configuration is {“default”:“https://registry.npm.taobao.org/”}. To recreate the modules directory using the new settings, run “pnpm install”.
pnpm 在切换 registery 后 ERR_PNPM_REGISTRIES_MISMATCH 报错,解决办法:
废话不多说,直接上代码
pnpm install -g
pnpm install -g pnpm
然后我们再次在面板中尝试安装依赖,发现可以正常安装。

当使用新版青龙面板遇到依赖安装失败,日志显示ERR_PNPM_REGISTRIES_MISMATCH错误时,可以通过运行'pnpminstall -g'和'pnpminstall -g pnpm'来切换registry并重新安装,问题通常能够得到解决,允许依赖正常安装。





