【VUE】npm error request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expir

1、npm install -g cnpm --registry=https://registry.npm.taobao.org

在使用淘宝镜像安装cnpm时报错npm error request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired,解决方案 如下

2、cnpm install --global vue-cli

在使用cnpm时报错,无法加载文件 C:\Program Files\nodejs\node_global\cnpm.ps1,因为在此系统上禁止运行脚本。

 在之前文章【vue】在windows中搭建vue开发环境(全网最详细)中安装cnpm时用的是淘宝镜像,目前无法使用了,就是本篇文章中提到的报错信息。

 一、报错信息

PS D:\Project\lzh_test\centos_deploy\vue> npm install -g cnpm --registry=https://registry.npm.taobao.org
npm warn cli npm v10.8.0 does not support Node.js v16.20.2. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nod

你可能感兴趣的:(VUE,vue.js,npm,前端,vue,cnpm)