[英]Trying to build a create-react-app project with expo, throws error about react-native
I've created my react app using create-react-app, and was trying to use expo, but its throwing errors when I try and build it using expo build:android
:我已经使用 create-react-app 创建了我的 React 应用程序,并试图使用 expo,但是当我尝试使用
expo build:android
构建它时它抛出错误:
Error: Can't find react-native in package.json dependencies
Error: React Native is not installed. Please run `npm install` in your project directory.
Do I need to start over with a react-native project, or is there a way to continue on and get this project published?我是否需要重新开始一个 react-native 项目,或者有没有办法继续并发布这个项目?
Try this:尝试这个:
This looks like a similar issue on this github error这看起来像这个 github 错误的类似问题
https://github.com/expo/expo-cli/issues/248 https://github.com/expo/expo-cli/issues/248
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.