estk
V2EX  ›  React

expo 如何设置 web 的端口?

  •  
  •   estk · Sep 7, 2022 · 1934 views
    This topic created in 1405 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   ·   5459 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    ♥ Do have faith in what you're doing.