14:42:26.860 正在启动微信开发者工具... 14:42:27.044 [微信小程序开发者工具] [error] IDE service port disabled. To use CLI Call, please enter y to confirm enabling CLI capability, or manually open IDE -> Settings -> Security Settings, and set Service Port On. 14:42:27.044 [微信小程序开发者工具] For more details see: https://developers.weixin.qq.com/miniprogram/en/dev/devtools/cli.html 14:42:27.047 [微信小程序开发者工具] [error] 工具的服务端口已关闭。要使用命令行调用工具,请在下方输入 y 以确认开启,或手动打开工具 -> 设置 -> 安全设置,将服务端口开启。 14:42:27.047 [微信小程序开发者工具] 详细信息: https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html 14:42:27.049 [微信小程序开发者工具] 14:42:27.049 [微信小程序开发者工具] ? Enable IDE Service (y/N) [27D[27C 14:42:27.051 [微信小程序开发者工具] - initialize 14:42:27.051 [微信小程序开发者工具] 14:42:27.054 [微信小程序开发者工具] × initialize 14:42:27.054 [微信小程序开发者工具] 14:42:27.056 [微信小程序开发者工具]
此原因是因为你用uniapp启动的微信开发者工具 微信开发者工具的端口号未开启 我们开启一下微信开发者工具的端口号就可以了
将微信开发者工具的服务端口号开启以后重新运行
然后就可以啦