-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run on windows.error #75
Comments
Hi, @issmile Of course, you can speak Chinese, please. :) According to #40 (comment), you need to change - import Wechaty from 'wechaty'
+ import { Wechaty } from 'wechaty' Sorry for the misleading old document, I had fixed them today. |
汗,以前都是用的现成的手脚架里有es6环境,现在这个不知道应该怎么弄了..... E:\weixin\wechaty>node mybot.js 额,我安装了 |
No problem, you are almost there! in order to use js, use |
终于搞定了es6,然后现在是这样的error 是什么情况?
INFO Wechaty v0.5.0 initializing... Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:5266 npm ERR! Windows_NT 10.0.14393 npm ERR! Please include the following file with any sup |
@issmile Please submit a new ISSUE for your new problem, and fill all the required questions in the ISSUE template. |
code:
error:
E:\weixin\wechaty>node mybot.js
E:\weixin\wechaty\mybot.js:3
Wechaty.instance() // Singleton
^
TypeError: Wechaty.instance is not a function
at Object. (E:\weixin\wechaty\mybot.js:3:9)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:160:18)
at node.js:449:3
how to run it on windows?I am not good English can I say Chinese?
The text was updated successfully, but these errors were encountered: