我有一个Ionic项目,它在我的windows机器和朋友的mac上运行得很好,但是我在linux上遇到了一个问题。
问题出现在ionic serve
上,它是无限的Waiting for connectivity with react-scripts...
,并且在运行时继续出现。开发服务器似乎工作正常。
霍普,我们会找到解决办法的.
CLI输出:
npm run start
> [project name]@0.0.1 start
> ionic serve
> react-scripts start
[react-scripts] ℹ 「wds」: Project is running at http://192.168.1.66/
[react-scripts] ℹ 「wds」: webpack output is served from
[react-scripts] ℹ 「wds」: Content not from webpack is served from /[project path]/app/public
[react-scripts] ℹ 「wds」: 404s will fallback to /
[react-scripts] Starting the development server...
[react-scripts]
[react-scripts] You can now view better-call in the browser.
[react-scripts] Local: http://localhost:8100
[react-scripts] On Your Network: http://192.168.1.66:8100
[react-scripts] Note that the development build is not optimized.
[react-scripts] To create a production build, use npm run build.
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
[INFO] Waiting for connectivity with react-scripts...
1条答案
按热度按时间ac1kyiln1#
我也有同样的问题,因为我用的是节点18,用16更好。你可以这样解决:
1.在n中安装npm。
1.安装节点的旧版本,16对我来说工作得很好,然后用这个命令安装-〉n 16。
1.更改您想要的节点版本,只需在终端中输入n,然后选择16节点版本,并再次使用离子服务器
我希望这对你有用。
最佳