pnpm切换源后报错ERR_PNPM_REGISTRIES_MISMATCH
工具都是有利有弊,使用 pnpm 过程中经常会出现一个错误:
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 -g".
在切换了 registery 源后,pnpm 安装全局包会收到 ERR_PNPM_REGISTRIES_MISMATCH 报错需要执行一下:
pnpm install -g
pnpm install -g pnpm