vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

request to https://registry.npm.taobao.org/@vue%2fcli-plugin-pwa failed, reason: certificate has expired

Open disinor opened this issue 1 year ago • 8 comments

Version

4.5.19

Environment info

version vue-cli 4.5.14

Steps to reproduce

I'm trying to install the @vue/cli-plugin-pwa package after which it throws an error

What is expected?

package installation

What is actually happening?

certificate error is displayed

disinor avatar Jun 14 '24 10:06 disinor

the problem was with the nvm package

disinor avatar Jun 14 '24 13:06 disinor

You can use the following command to configure new mirrors.

npm config set registry https://registry.npmmirror.com

This is Taobao's new mirror address.

wjw020206 avatar Jul 12 '24 07:07 wjw020206

You can try:

1. npm cache clean --force
2. npm config set strict-ssl false

then install your want.

heycn avatar Sep 30 '24 03:09 heycn

it does work after using your commands

zhangxu36925800 avatar Dec 23 '24 01:12 zhangxu36925800

I got the same issue and tried everything above except disabling strict-ssl which should not be recommend imo. I also tried deleting node_modules and package-lock.json but this does not change anything.

I don't know what to do...

brospars avatar Apr 16 '25 10:04 brospars

Please try the commands as follow : npm cache clean --force # this command is used to clean the cache npm config set registry https://registry.npm.taobao.org/ #this command is used to set a new mirror,after that it will do work. @brospars

zhangxu36925800 avatar Apr 17 '25 02:04 zhangxu36925800

Please try the commands as follow : npm cache clean --force # this command is used to clean the cache npm config set registry https://registry.npm.taobao.org/ #this command is used to set a new mirror,after that it will do work. @brospars

Please do not use https://registry.npm.taobao.org/, as this is an old domain and its SSL certificate has expired. Please use the new domain https://registry.npmmirror.com/ instead.

Image

wjw020206 avatar Apr 17 '25 05:04 wjw020206

I dont' want to use any mirror but npm install is still using it for some reason...

brospars avatar Apr 17 '25 05:04 brospars