package.json 配置
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web --port 1234"
}
yarn web 运行,结果是:
> Metro waiting on exp://192.168.3.8:1234
> Web is waiting on http://localhost:19006
web 端口没变?