如何解决yarn config set "strict-ssl" false -g 是否适合通过 https
由于某种原因,我今天开始收到以下错误。直到上周它都运行良好,没有抱怨。所以我在重新搜索后做了以下事情:
yarn config set "strict-ssl" false -g
纱线安装成功了。但它比以前用户使用的要慢。由于我在本地进行了测试,我想知道此设置是否适用于我们使用 https 的生产环境?我的意思是我可以将带有上述更改的代码推送到 gitlab,然后使用相同的内容部署到生产环境中吗?
$ yarn install
yarn install v1.22.0
info No lockfile found.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@babel%2fplugin-proposal-throw-expressions: unable to get local issuer certificate".
info If you think this is a bug,please open a bug report with the information provided in "C:\\tan\\project\\testing related folders\\slowness_bug\\projectexplorer\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
如果需要更多信息:
如果需要,我的节点版本是 v12.16.1
。我在 Windows 操作系统上使用 Gitbash。我的生产环境是RHEL服务器。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。