代码之家  ›  专栏  ›  技术社区  ›  mrfr

Metro Bundler未能启动。(代码:EACCES)

  •  2
  • mrfr  · 技术社区  · 6 年前

    当我尝试用 exp start exp start -c exp start -c --tunnel exp start --tunnel )。

    felix:~/job/App (dev) $ exp start
    [11:50:59] Using project at /home/felix/job/App
    [11:51:08] Scanning folders for symlinks in /home/felix/job/App/node_modules (8ms)
    [11:51:08] Starting Metro Bundler on port 19001.
    [11:51:08] Metro Bundler ready.
    [11:51:08] Successfully ran `adb reverse`. Localhost urls should work on the connected Android device.
    [11:51:10] Tunnel ready.
    [11:51:10] Expo is ready.
    
    [11:51:10] Your URL is: exp432e0186c47243658eeef37602b6c1c4://10.114.17.163:19000
    [11:51:10] Logs for your project will appear below. Press Ctrl+C to exit.
    [11:51:15] Metro Bundler failed to start. (code: EACCES)
    

    .expo

    我对我所有的文件都有适当的权限。我在我的主目录中拥有repo,我不知道expo是否在我的根目录中创建任何文件。

    值得注意的是,如果我用 create-react-native-app exp开始 exp开始

    3 回复  |  直到 6 年前
        1
  •  1
  •   Llama D'Attore    6 年前

    sudo exp start 以前帮我修过这个。每个事件通常都与基于权限的错误有关

        2
  •  0
  •   mrfr    6 年前

    EACCES 错误。

        3
  •  0
  •   Vine    6 年前

    您也可以以管理员身份运行命令提示符并执行

    net stop http
    

    net start http
    

    重新启动所有端口以确保它不是连接问题