当前位置:编程学习 > 微信小程序 >>

uni-app开发 [微信小程序开发者工具] ? Enable IDE Service (y/N)

[微信小程序开发者工具] ? Enable IDE Service (y/N) 

1.调用微信开发者工具报错IDE service port disabled
在HBuilderX下开发好项目后,要使用小程序模拟器进行运行调试时,控制台报错如下:

21:48:18.851 [微信小程序开发者工具] [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.
21:48:18.859 [微信小程序开发者工具] For more details see: https://developers.weixin.qq.com/miniprogram/en/dev/devtools/cli.html
21:48:18.859 [微信小程序开发者工具] [error] 工具的服务端口已关闭。要使用命令行调用工具,请在下方输入 y 以确认开启,或手动打开工具 -> 设置 -> 安全设置,将服务端口开启。
21:48:18.866 [微信小程序开发者工具] 详细信息: https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html
复制

此时是因为微信开发者工具未打开服务端口,根据提示,打开微信开发者工具 -> 设置 -> 安全设置 -> 开启服务端口即可,如下

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,