您当前的位置: 首页 >  npm

彭世瑜

暂无认证

  • 2浏览

    0关注

    2791博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

pnpm:报错ERR_PNPM_REGISTRIES_MISMATCH

彭世瑜 发布时间:2022-08-31 18:05:59 ,浏览量:2

问题描述

使用pnpm安装全局包

$ pnpm i lerna -g

报错

 ERR_PNPM_REGISTRIES_MISMATCH  
 This modules directory was created using the following registries configuration:
  {"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

关注
打赏
1665367115
查看更多评论
立即登录/注册

微信扫码登录

0.0567s