estk
V2EX  ›  React

expo 如何设置 web 的端口?

  •  
  •   estk · Sep 7, 2022 · 1839 views
    This topic created in 1366 days ago, the information mentioned may be changed or developed.

    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 端口没变?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5378 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 08:16 · PVG 16:16 · LAX 01:16 · JFK 04:16
    ♥ Do have faith in what you're doing.