我真的需要一些帮助,这似乎是最基本的任务(设置博览会/反应-本土项目)。我安装了expo-cli (v3.11.7),react-native (v2.0.1),watchman (v4.9.0)和node (v12.14.1)。我一直遵循本教程,直到需要运行expo start,并得到以下错误:
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时,我看到了以下错误:
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),并尝试使用此方法安装时出现了同样的错误:
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有人能告诉我吗?
发布于 2020-02-01 18:41:10
我设法解决了这个问题。我试图通过我的家庭网络安装,这显然有一些代理限制!不知道为什么。
有人建议我再试一次,但是连接到另一个网络或我的移动热点。我试过了而且成功了!问题解决了。所以我想,对于其他可能遇到同样问题的人,试着连接到另一个网络,看看这是否有帮助。
如果这失败了,那么我认为查看代理配置并在那里进行更改可能会有所帮助。但是,我不建议这样做,除非您知道,,您正在做什么。
https://stackoverflow.com/questions/60019162
复制相似问题