ubuntu yarn install error An unexpected error occurred: unable to get local issuer certificate修复

    科技2025-01-16  7

    问题: 

    yarn install v1.22.5 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... error An unexpected error occurred: "https://registry.yarnpkg.com/@jeecg%2fantd-online-mini: unable to get local issuer certificate". info If you think this is a bug, please open a bug report with the information provided in "/www/wwwroot/jeecg-boot/ant-design-vue-jeecg/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

     

    修复:

    yarn config set "strict-ssl" false -g

    Processed: 0.010, SQL: 8