$ npm install vue-i18n –save –verbose
npm verbose cli D:\nodejs\node.exe D:\nodejs\node_modules\npm\bin\npm-cli.js
npm info using npm@10.7.0
npm info using node@v20.14.0
npm verbose title npm install vue-i18n
npm verbose argv “install” “vue-i18n” “–save” “–loglevel” “verbose”
npm verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-10-16T06_17_30_314Z-
npm verbose logfile C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-10-16T06_17_30_314Z-debug-0.log
npm http fetch GET https://registry.npm.taobao.org/vue-i18n attempt 1 failed with CERT_HAS_EXPIRED
npm http fetch GET https://registry.npm.taobao.org/vue-i18n attempt 2 failed with CERT_HAS_EXPIRED
npm http fetch GET https://registry.npm.taobao.org/vue-i18n attempt 3 failed with CERT_HAS_EXPIRED
npm verbose type system
npm verbose stack FetchError: request to https://registry.npm.taobao.org/vue-i18n failed, reason: certificate has expired
npm verbose stack at ClientRequest.<anonymous> (D:\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
npm verbose stack at ClientRequest.emit (node:events:519:28)
npm verbose stack at _destroy (node:_http_client:880:13)
npm verbose stack at onSocketNT (node:_http_client:900:5)
npm verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
npm verbose cwd E:\wwwroot\0-hbuilder\fyx_uniapp
npm verbose Windows_NT 10.0.19045
npm verbose node v20.14.0
npm verbose npm v10.7.0
npm error code CERT_HAS_EXPIRED
npm error errno CERT_HAS_EXPIRED
npm error request to https://registry.npm.taobao.org/vue-i18n failed, reason: certificate has expired
npm verbose exit 1
npm verbose code 1

npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-10-16T06_17_30_314Z-debug-0.log

将npm淘宝镜像切换至淘宝的新镜像域名

1.先清空一下缓存
npm cache clean –force

2.切换新源
npm config set registry https://registry.npmmirror.com

3.查看源是否设置成功
npm config get registry

> npm cache clean –force
npm warn using –force Recommended protections disabled.
> npm config set registry https://registry.npmmirror.com
> npm config get registry
https://registry.npmmirror.com

作者 admin

百度广告效果展示