简体   繁体   English

如何使用 npm 启动和 expo 启动来运行 React 本机 expo

[英]How to run React native expo with npm start and expo start

I am trying to run react native expo, it runsbefore but after try to build an apk, it doest work anymore.我正在尝试运行本机 expo 反应,它之前运行但在尝试构建 apk 之后,它不再工作了。 here the error below.这里是下面的错误。

I tried npm start and expo start it doesn't work.我试过 npm 启动和 expo 启动它不起作用。

在此处输入图像描述

I'd suggest to install the expo-cli globally.我建议在全球范围内安装 expo-cli。 In the future you use the cool features that are provided by this cli.将来,您将使用此 cli 提供的很酷的功能。 Like expo init .expo init

npm install expo-cli -g

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM