estk
V2EX  ›  React

expo 如何设置 web 的端口?

  •  
  •   estk · Sep 7, 2022 · 1848 views
    This topic created in 1372 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   ·   5890 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:10 · PVG 14:10 · LAX 23:10 · JFK 02:10
    ♥ Do have faith in what you're doing.