工具都是有利有弊,使用 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
标签:ERR,MISMATCH,报错,install,pnpm,源后 From: https://www.cnblogs.com/yeminglong/p/17918606.html