PS D:\IdeaProject\shop-ui-master\shop-ui-master\buyer> npm install
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/mv-count-down failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2024-07-16T08_27_52_966Z-debug.log
失败,报错。
PS D:\IdeaProject\shop-ui-master\shop-ui-master\buyer> npm config set registry https://registry.npmmirror.com
PS D:\IdeaProject\shop-ui-master\shop-ui-master\buyer> npm config get registry
https://registry.npm.taobao.org/
修改还是失败
修改C盘该文件通常位于 ~/.npmrc (用户级别)或项目根目录下的 .npmrc (项目级别)
该图片是项目目录下的
修改之后,不再报错