问题描述
使用pnpm安装全局包
$ pnpm i lerna -g
报错
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.npmmirror.com/"}. To recreate the modules directory using the new settings, run "pnpm install".
问题分析
原因是我将原来的下载源切换为了 npmmirror 中国镜像站
问题解决
pnpm install -g pnpm install -g pnpm
参考