问题描述
使用pnpm安装全局包
$ pnpm
报错
{"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
参考
pnpm 在切换 registery 后 ERR_PNPM_REGISTRIES_MISMATCH 报错 #13