运行npm start
或expo start
将按以下方式启动该项目:
React You can now view My React Native App in the browser.
Local: http://localhost:19006/ On Your Network: http://157.201.29.49:19006/
Note that the development build is not optimized.
› To create a production build, run expo build:web › Press Ctrl+C to exit.
Expo Press ? to show a list of all available commands.
启动世博网站,按下‘w’打开Chrome浏览器的IP地址URI http://157.201.29.49:19006/
,如建议。
但是,由于office,Chrome浏览器无法解析地址。错误是:
到不了这个网站 ERR_CONNECTION_TIMED_OUT
将Chrome中的URL替换为http://localhost:19006成功。
如何启动世博,使‘w’自动启动与本地主机,而不是IP地址?
发布于 2020-01-29 05:58:25
要修复,直接启动expo
,如下所示提供localhost选项:
expo start —-localhost
参见世博会CLI文档以获取expo start
--localhost Same as --host localhost
https://stackoverflow.com/questions/59968657
复制相似问题