今天安装node的时候碰到了证书问题
npm error code CERT_HAS_EXPIRED
npm error errno CERT_HAS_EXPIRED
npm error request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/vue failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in: D:\LanguageEnvironment\nodejs\node_cache\_logs\2024-03-15T13_51_47_602Z-debug-0.log
vue2.x执行
npm install -g @vue/cli --strict-ssl=false
vue3执行
npm install -g cnpm --registry=https://registry.npm.taobao.org --strict-ssl=false