合作联系微信: w6668263      合作联系电话:177-9238-7426     

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

 

posted on 2023-12-21 11:21  草率的龙果果  阅读(1052)  评论(0编辑  收藏  举报

导航