yarn add electron -D
安装electron时,显示认证错误
PS E:\codes\electronVite\learn1\electron-vite> yarn add taobao https://registry.npm.taobao.org/
yarn add v1.22.18
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npm.taobao.org/taobao: unable to get local issuer certificate".
info If you think this is a bug, please open a bug report with the information provided in "E:\\codes\\electronVite\\learn1\\electron-vite\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
提示认证方面的错误
措施: 修改.npmrc文件: 把ca项删除 strict-ssl=false