工具都是有利有弊,使用 pnpm 过程中经常会出现一个错误:
ERR_PNPM_REGISTRIES_MISMATCH This modules directory was created using the following registries configuration: {"default":"http://xxx1/"}. The current configuration is {"default":"http://xxx2/"}. To recreate the modules directory using the new settings, run "pnpm install".
在切换了 registery 源后,pnpm 安装全局包会收到 ERR_PNPM_REGISTRIES_MISMATCH 报错需要执行一下:
pnpm install -g pnpm install -g pnpm
本文关键词:pnpm 切换源后报错,pnpm 切换源后报错 ERR_PNPM_REGISTRIES_MISMATCH,pnpm 切换 registery 后报错 ERR_PNPM_REGISTRIES_MISMATCH
未经允许不得转载:前端资源网 - w3h5 » pnpm切换源后报错ERR_PNPM_REGISTRIES_MISMATCH