C:\Windows\System32>npm install -g @vue/cli
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/@vue/cli failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\13001\AppData\Roaming\npm-cache\_logs\2024-01-22T07_12_39_137Z-debug.log
遇到以上bug
解决方法:
npm cache clean --force
npm config set strict-ssl false
npm install