解决报错npm ERR request to https://registry.cnpmjs.org/wangeditor failed, reason: Hostname/
vue用npm install时报错时出现:
npm ERR! request to https://registry.cnpmjs.org/wangeditor failed, reason: Hostname/IP does not match certificate's altnames: Host: registry.cnpmjs.org. is not in the cert's altnames: DNS:r.cnpmjs.org
是因为本地taobao镜像不可用需要还原节点。
当然你用cnpm install可能也是不可以的。
解决办法比较复杂,小编认为是本地电脑自定义配置时设置的一种保护电脑的机制(仅供参考)
解决办法是重新安装,从根部解决
1、执行:
npm config get proxy
npm config get https-proxy
如果返回值不为null,继续执行:
注意:要确保两个返回值都是null才可以,否则就要执行下面的代码
npm config set proxy null
npm config set https-proxy null
2、执行:
npm config set registry http://registry.cnpmjs.org/
3、重新安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
这只是其中的一种方法,每种错误的方式是不一样的。
如果你有更好的方法记得与我分享呦
记得点赞呦,不然会报错的,哈哈哈!
解决报错npm ERR request to https://registry.cnpmjs.org/wangeditor failed, reason: Hostname/相关推荐
- 安装npm install报错npm ERR! request to https://registry.cnpmjs.org/@jeecg%2fantd-online-mini failed, rea
先是下载cnpm然后报错,不是外部命令然后我用npm uninstall cnpm -g删除了,在用npm install的时候就报错了 npm ERR! code ERR_TLS_CERT_ALTN ...
- 【ERORR未解决】npm ERR! request to https://registry.npmjs.org/composer-runtime-hlfv1 failed, reason: unab
尝试js开发遇到问题,开了一个v2版本的换了一些东西准备跑一下试试看,遇到错误. 它尝试启动一个ccenv但是没有启动成功. (改动的地方是把类的引用改为了id的引用,因为类的引用接口不是很明白该咋写 ...
- npm 安装出错 npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to verify th
npm 安装 jointjs时 出现 D:\Project\demo>npm install jointjs npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNAT ...
- npm i报错npm ERR! network request to https://registry.npmjs.org/vue-router failed, reason: read ECONNR
npm i报错npm ERR! network request to https://registry.npmjs.org/vue-router failed, reason: read ECONNR ...
- npm ERR! network request to https://registry.npmjs.org/axios failed, reason: Client network socket d
在终端通过npm install 安装axios/sass等第三方库时报错 npm ERR! network request to https://registry.npmjs.org/axios f ...
- ruoyi-ui下载依赖报错npm ERR! cb() never called!
问题: 在ruoyi-ui目录下执行npm install报错 npm ERR! cb() never called! 解决办法: 参考该网址的方法一解决 npm install报错npm ERR! ...
- npm报错 npm ERR! Could not resolve dependency:npm ERR! peer pug@“^2.0.0“ from pug-loader@2.4.0
npm报错 npm ERR! Could not resolve dependency:npm ERR! peer pug@"^2.0.0" from pug-loader@2.4 ...
- Vue项目 npm i 报错npm ERR! code 1
Vue项目 npm i 报错npm ERR! code 1 记录一下 npm i 的时候报错,报错信息如下 记录一下 npm i 的时候报错,报错信息如下 npm ERR! code 1 npm ER ...
- Vue项目 npm i 报错npm ERR code 1
Vue项目 npm i 报错npm ERR! code 1 记录一下 npm i 的时候报错,报错信息如下 记录一下 npm i 的时候报错,报错信息如下 npm ERR! code 1 npm ER ...
最新文章
- 获取二进制或者16/32位的某一位的值
- Win下通过 Navica t连接Ubuntu下MySQL数据库
- 操作系统——缓冲区溢出
- 第一章 QT Creator 简介
- Python timeit模块的使用
- [zz]ASP.NET MVC2框架验证学习笔记
- python字符画太小_python小项目(-)图片转字符画
- java 字符串比较 == equals_java怎么比较字符串,==和equals有什么区别
- FabFilter Total Bundle 2021 for Mac(经典音频效果器合集)
- Win 10 安装 Maven 与 Maven 知识点扫盲
- Oracle:PL/SQL程序开发
- 查找重复姓名的SQL语句
- 杰理之SRRC认证杂散超标【篇】
- JS实现:纵向表格,且可在当前行下方添加一行
- WampServer常见问题集锦
- ArcGIS用土地利用数据导出shp
- 基于matlab/simulink同步发电机电路模型仿真,基于MATLAB/SIMULINK同步发电机电路模型仿真...
- 跨境电商如何做好客户沟通?
- 昨天和朋友聊完感触不少,次条分享个有意思的事
- 合肥青少年信息学计算机竞赛试题,合肥市第17届“永信”杯青少年信息学(计算机)竞赛中学组笔试题...