npm - Bigbluebutton 开发 html5 客户端未启动
问题描述
我已按照官方文档设置 bigbluebutton 开发环境,但 html5 客户端未启动,引发以下错误。尝试使用不同的服务器但同样的错误
if (oldPresenter?.userId !== currentPresenterId) {
W20201227-04:07:46.391(0)? (STDERR) ^
W20201227-04:07:46.392(0)? (STDERR)
W20201227-04:07:46.392(0)? (STDERR) SyntaxError: Unexpected token .
W20201227-04:07:46.392(0)? (STDERR) at createScript (vm.js:80:10)
W20201227-04:07:46.393(0)? (STDERR) at Object.runInThisContext (vm.js:139:10)
W20201227-04:07:46.393(0)? (STDERR) at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:393:30
W20201227-04:07:46.393(0)? (STDERR) at Array.forEach (<anonymous>)
W20201227-04:07:46.394(0)? (STDERR) at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:220:19
W20201227-04:07:46.394(0)? (STDERR) at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:471:5
W20201227-04:07:46.394(0)? (STDERR) at Function.run (/home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/profile.js:510:12)
W20201227-04:07:46.395(0)? (STDERR) at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:470:11
我没有更改任何文件。
nodejs版本v8.17.0
解决方案
节点 8 不支持该x?.y
语法。你需要使用老派:
if (oldPresenter && oldPresenter.userId !== currentPresenterId) {
或者你的逻辑应该是什么。
推荐阅读
- javascript - 当用户点击父菜单时隐藏下拉菜单
- authentication - AuthenticationManager.RegisteredModules 不返回任何内容
- css - 如何右对齐 flexbox 布局中的最后两个(或更多)项目?
- ios - 使用 Xcode UI 测试,是否可以在不接收点(“•••••”)的情况下获取 secureTextFields 元素的值?
- swift - 在执行可编码解码类型检查之前执行代码?
- oracle - 如何使递归的 pl/sql 代码块与多个选择语句一起工作?
- lua - io.read() 不允许我输入 (Lua)
- javascript - 使用 DOM 对 js 文件进行单元测试,同时仍然使 html 工作
- c++ - Microsoft C++ 异常:来自 DLL 的函数中内存位置的 std::bad_array_new_length
- ios - iOS模拟器上的初始屏幕是黑色的