V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
estk
V2EX  ›  React

expo 如何设置 web 的端口?

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