creator运行WeChatGame出现错误

构建没问题,运行就提示
Cannot find module 'D:\Program Files (x86)\Tencent\微信web开发者工具\cli.js
at Function.Module._resolveFilename (module.js:513:15)
at Function.Module._load (module.js:463:25)
at Function.Module.runMain (module.js:653:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
at Socket. (F:\ProgramFiles\CocosCreator\resources\app.asar\editor\core\wechat-game.js:1:1302)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)

偏好设置也设置了WechatGame路径

卸载重装微信开发者工具好了。
不过creator提示了这个
Runtime error: Error
Error: getaddrinfo ENOTFOUND http://127.0.0.1 http://127.0.0.1:54458
at Socket. (F:\ProgramFiles\CocosCreator\resources\app.asar\editor\core\wechat-game.js:1:1302)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)

目前好像没有什么影响。可以运行。。。

我也遇到这样的情况了

1赞

我也遇到这个错了,重装没有用,求大佬帮忙

你路径设置错了。


这样就好了,点赞