pnpm切换源后报错ERR_PNPM_REGISTRIES_MISMATCH

工具都是有利有弊,使用 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

未经允许不得转载:Web前端开发资源网 » pnpm切换源后报错ERR_PNPM_REGISTRIES_MISMATCH

推荐阅读:

利用css中的伪类 给元素设置特殊样式效果

html中hr标签的基础知识

20180410博客更换服务器步骤

2018年4月24日 服务器换成腾讯云

【笔记】微信小程序通过app.json设置底部导航

赞 (0)
分享到: +

评论 沙发

Avatar

换个身份

  • 昵称 (必填)
  • 邮箱 (选填)