Skip to content
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

node dist/example/ding-dong-bot.js example运行异常 #159

Closed
jianboy opened this issue Dec 23, 2016 · 1 comment
Closed

node dist/example/ding-dong-bot.js example运行异常 #159

jianboy opened this issue Dec 23, 2016 · 1 comment

Comments

@jianboy
Copy link

jianboy commented Dec 23, 2016

Run npm run doctor or wechaty run doctor(for docker user), paste output here

D:\liuyuqi\twtech\github\bigdata\wechaty>npm run doctor

[email protected] doctor D:\liuyuqi\twtech\github\bigdata\wechaty
ts-node bin/doctor

                                                                                                                                                                                                                        SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Module.m._compile (D:\liuyuqi\twtech\github\bigdata\wechaty\node_modules\ts-node\src\index.ts:406:23)
at Module._extensions..js (module.js:416:10)
at Object.require.extensions.(anonymous function) [as .ts] (D:\liuyuqi\twtech\github\bigdata\wechaty\node_modules\ts-node\src\index.ts:409:12)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (D:\liuyuqi\twtech\github\bigdata\wechaty\bin\doctor.ts:15:1)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "doctor"
npm ERR! node v4.4.6
npm ERR! npm v2.15.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] doctor: ts-node bin/doctor
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] doctor script 'ts-node bin/doctor'.
npm ERR! This is most likely a problem with the wechaty package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ts-node bin/doctor
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs wechaty
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls wechaty
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\liuyuqi\twtech\github\bigdata\wechaty\npm-debug.log

Expected behavior

首先,配置:
node4,
windows10,
npm2.15

执行如下命令:
cd wechaty
$ npm run dist
$ node dist/example/ding-dong-bot.js

SyntaxError: Unexpected token [
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (D:\liuyuqi\twtech\github\bigdata\wechaty\dist\src\room.js:24:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

@huan
Copy link
Member

huan commented Dec 23, 2016

Wechaty requires Node.js v6.9 or above.

@huan huan closed this as completed Dec 23, 2016
huan added a commit that referenced this issue Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants