-
-
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
node dist/example/ding-dong-bot.js example运行异常 #159
Comments
Wechaty requires Node.js v6.9 or above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output hereD:\liuyuqi\twtech\github\bigdata\wechaty>npm run doctor
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)
The text was updated successfully, but these errors were encountered: