dart错误 - 无法启动pub服务或连接到pub [英] dart error - could not start pub serve or connect to pub
问题描述
我尝试运行此拖放API。当我尝试运行dart文件(使用dart编辑器)时,我得到以下错误:
I'm trying to run this drag and drop API. When I try to run the dart file (with the dart editor) I get the following error:
无法启动pub服务或连接到pub
。
我不熟悉dart。
推荐答案
您有另一个服务侦听端口 8080
(有一个开放的问题,使端口 pub服务
正在使用可配置)或已经有 pub服务
实例运行(我有这种情况, pub服务
在DartEditor崩溃后保持运行)。
Either you have another service listening on port 8080
(there is an open issue to make the port pub serve
is using configurable) or there is already a pub serve
instance running (I had this occassionally, that pub serve
kept running after DartEditor crashed).
如果任何 Dart
进程仍然在运行,并杀死所有,如果有的话,然后启动DartEditor并再试一次。
If it is the later, end DartEditor and check in the TaskManger (Windows) if any Dart
process is still running and kill all if any, and then start DartEditor and try again.
这篇关于dart错误 - 无法启动pub服务或连接到pub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!