首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >‘`npm安装’问题/使用expo-cli和react本机应用程序失败

‘`npm安装’问题/使用expo-cli和react本机应用程序失败
EN

Stack Overflow用户
提问于 2020-02-01 17:03:29
回答 1查看 1.6K关注 0票数 0

我真的需要一些帮助,这似乎是最基本的任务(设置博览会/反应-本土项目)。我安装了expo-cli (v3.11.7)react-native (v2.0.1)watchman (v4.9.0)node (v12.14.1)。我一直遵循本教程,直到需要运行expo start,并得到以下错误:

代码语言:javascript
复制
Your project is in SDK version >= 33.0.0, but the expo package version seems to be older.
Error: node_modules directory is missing. Please run npm install in your project directory.
Couldn't start project. Please fix the errors and restart the project.
Set EXPO_DEBUG=true in your env to view the stack trace.

然后我运行了npm install,然后再试一次,但同样的错误出现了。我已经删除了node_modules文件夹,这也不起作用。

更新:

当我安装npm时,我看到了以下错误:

代码语言:javascript
复制
npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.    
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to https://codeload.github.com/expo/react-native/tar.gz/sdk-36.0.0 failed, reason: write EPROTO 4521895360:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 40

我安装了yarn (v1.21.1),并尝试使用此方法安装时出现了同样的错误:

代码语言:javascript
复制
warning expo > fbemitter > fbjs > core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
error An unexpected error occurred: "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz: write EPROTO 4356277696:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 40

有人能告诉我吗?

EN

回答 1

Stack Overflow用户

发布于 2020-02-01 18:41:10

我设法解决了这个问题。我试图通过我的家庭网络安装,这显然有一些代理限制!不知道为什么。

有人建议我再试一次,但是连接到另一个网络或我的移动热点。我试过了而且成功了!问题解决了。所以我想,对于其他可能遇到同样问题的人,试着连接到另一个网络,看看这是否有帮助。

如果这失败了,那么我认为查看代理配置并在那里进行更改可能会有所帮助。但是,我不建议这样做,除非您知道,您正在做什么。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60019162

复制
相关文章

相似问题

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