-
Notifications
You must be signed in to change notification settings - Fork 238
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
centos 6 64 无法运行 #19
Comments
@chijiao 你好, // src/index.js
let { spawn } = require('child_process') 这行貌似用到了"object destructing"这个新语法,根据node.green看, wxbot最新的这个next分支, |
@fritx 感谢回复, 将 nodejs 更新到最新版, 发现如下错误 [root@localhost wxbot]# npm install
module.js:471 Error: Cannot find module '/root/wxbot/node_modules/electron/install.js' npm WARN [email protected] No license field. npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: |
另外解决掉版本及依赖问题以后, 输入 node . , 程序无任何反馈, 也没有任何提示, 请问下一步该如何? |
按照文档安装,提示如下错误
[root@localhost wxbot]# node .
/root/wxbot/src/index.js:1
(function (exports, require, module, __filename, __dirname) { let { spawn } =
^
SyntaxError: Unexpected token {
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3
The text was updated successfully, but these errors were encountered: