【发布时间】:2020-02-01 17:03:29
【问题描述】:
对于看似最基本的任务(设置 expo/react-native 项目),我确实需要一些帮助。我已经安装了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 install 这是我看到的错误:
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
谁能给点建议?
【问题讨论】:
标签: macos react-native expo npm-install yarnpkg