首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在创建-反应-应用程序时出现意外错误:"https://registry.yarnpkg.com/react: unable to get local issuer certificate“

在创建-反应-应用程序时出现意外错误:"https://registry.yarnpkg.com/react: unable to get local issuer certificate“
EN

Stack Overflow用户
提问于 2020-09-30 02:29:17
回答 1查看 7K关注 0票数 10

我在我的windows机器上安装了以下软件:

节点: v12.18.4

纱线: 1.19.1

create-react-app: 3.4.1

我导航到文件夹c:\temp,然后尝试使用以下命令创建react应用程序:

c:\temp>create-react-app react-test --scripts-version 1.1.5

在执行上述命令时,我看到以下错误:

代码语言:javascript
复制
Creating a new React app in C:\Temp\react-test.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.19.1
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/react: 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:\\Temp\\react-test\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts cra-template --cwd C:\Temp\react-test has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.

有没有人可以通过提供指导来帮助我解决这个问题

EN

回答 1

Stack Overflow用户

发布于 2020-11-12 22:04:35

关闭yarn/npm上的strict-ssl配置,然后重试

代码语言:javascript
复制
yarn config set "strict-ssl" false -g

代码语言:javascript
复制
npm config set "strict-ssl" false -g
票数 29
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64125554

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档