PS C:\Users\FF\Desktop\test_vue> npm install echarts --save
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/echarts failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
解决
npm config set strict-ssl false
再次安装即可
PS C:\Users\FF\Desktop\test_vue> npm config set strict-ssl false
PS C:\Users\FF\Desktop\test_vue> npm install echarts --save
added 4 packages, and changed 44 packages in 2m