pnpm:报错ERR_PNPM_REGISTRIES_MISMATCH

简介: pnpm:报错ERR_PNPM_REGISTRIES_MISMATCH

问题描述

使用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
相关文章
|
4月前
|
Linux 内存技术
使用npm install -g pnpm的时候报错
使用npm install -g pnpm的时候报错
464 139
jeecgboot跨表联合查询分页查询
jeecgboot跨表联合查询分页查询
710 0
|
JavaScript
【vue】 vue2 自定义指令 实现全屏 、对话框拖拽
【vue】 vue2 自定义指令 实现全屏 、对话框拖拽
540 2
|
JavaScript 定位技术
原生 js 实现类 3d 地图大屏展示自动高亮轮播、显示悬浮提示 tootip 的方案:svg + popper.js 定位引擎
原生 js 实现类 3d 地图大屏展示自动高亮轮播、显示悬浮提示 tootip 的方案:svg + popper.js 定位引擎
593 0
原生 js 实现类 3d 地图大屏展示自动高亮轮播、显示悬浮提示 tootip 的方案:svg + popper.js 定位引擎
使用element clickoutside自定义指令事件,点击元素外部触发(element-ui/src/utils/clickoutside)
使用element clickoutside自定义指令事件,点击元素外部触发(element-ui/src/utils/clickoutside)
|
网络协议 Shell 应用服务中间件
acme.sh使用教程
安装 安装 acme.sh安装很简单, 一个命令: curl https://get.acme.sh | sh普通用户和 root 用户都可以安装使用。 会安装在 ~/.acme.sh/ 目录下,以后生成的证书也会在这里面,按照域名为文件夹安置。
16992 2
|
资源调度 JavaScript
vue-element-admin 综合开发三:header组件的实现、vuex的使用、main组件(home页面)的实现
这篇文章介绍了如何实现一个Vue.js项目中的header组件,使用Vuex进行状态管理,以及创建一个main组件(home页面),并讨论了一些开发中遇到的bug。
494 0
|
前端开发 JavaScript
VUE——Uncaught (in promise) TypeError: Cannot read property '__esModule' of undefined
VUE——Uncaught (in promise) TypeError: Cannot read property '__esModule' of undefined
461 0
Linux系统调试篇——Linux错误码介绍
Linux系统调试篇——Linux错误码介绍
|
Linux 应用服务中间件 数据安全/隐私保护
Linux - 非root用户使用systemctl管理服务
Linux - 非root用户使用systemctl管理服务
1496 0