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

参考

pnpm 在切换 registery 后 ERR_PNPM_REGISTRIES_MISMATCH  报错 #13


相关文章
|
6月前
|
缓存 资源调度
解决安装依赖时报错:npm ERR! code ERESOLVE
解决安装依赖时报错:npm ERR! code ERESOLVE
3252 0
解决安装依赖时报错:npm ERR! code ERESOLVE
|
6月前
|
缓存
npm install 报 npm ERR! cb()never called!的错误
npm install 报 npm ERR! cb()never called!的错误
978 0
npm 安装出错 npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to verify th
npm 安装出错 npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to verify th
912 0
|
资源调度
npm i时报错npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving
npm i时报错npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving
292 0
|
缓存
【已解决】npm安装依赖报错: npm ERR! cb() never called! npm ERR! This is an error with npm itself.
【已解决】npm安装依赖报错: npm ERR! cb() never called! npm ERR! This is an error with npm itself.
1906 0
|
6月前
npm报错:npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED,npm ERR! npm ERR! If you are behind a
npm报错:npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED,npm ERR! npm ERR! If you are behind a
117 0
|
缓存 JavaScript 前端开发
Vue3升级版本引发的 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree
Vue3升级版本,引发的 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree
732 0
Vue3升级版本引发的 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree
npm安装依赖报错npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND
npm安装依赖报错 使用npm安装一个依赖包时报错,报错内容如下:
5670 0
|
6月前
|
JavaScript 网络安全 数据安全/隐私保护
【问题:创建Vue项目】npm ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR!
【问题:创建Vue项目】npm ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR!
pnpm:报错ERR_PNPM_REGISTRIES_MISMATCH
pnpm:报错ERR_PNPM_REGISTRIES_MISMATCH
3576 0