estk
V2EX  ›  React

expo 如何设置 web 的端口?

  •  
  •   estk · Sep 7, 2022 · 1786 views
    This topic created in 1346 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   ·   2598 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:48 · PVG 08:48 · LAX 17:48 · JFK 20:48
    ♥ Do have faith in what you're doing.