1.2 Beta - Reserved Word Error

Hello,

I just started playing around with TR069/ACS, and found GenieACS. I was able to get v1.1 somewhat up and running, but seeing as I don’t have a production going yet, figured I would give 1.2 a shot.

I followed the docs, and it seemed to have built successfully. But when I go and run it, I get an error:

./dist/bin/genieacs-cwmp
/home/jbarbieri/genieacs/dist/bin/genieacs-cwmp:2
“use strict”;function _interopDefault(e){return e&&“object”==typeof e&&“default"in e?e.default:e}const path=require(“path”),fs=require(“fs”),os=require(“os”),cluster=_interopDefault(require(“cluster”)),http=require(“http”),https=require(“https”),zlib=require(“zlib”),crypto=require(“crypto”),vm=require(“vm”),seedrandom=_interopDefault(require(“seedrandom”)),child_process=require(“child_process”),later=require(“later”),mongodb=require(“mongodb”),parsimmon=require(“parsimmon”),util=require(“util”),tls=require(“tls”),iconvLite=require(“iconv-lite”),yaml=require(“yaml”);let configDir,cwmpSsl,nbiSsl,fsSsl,uiSsl,ROOT_DIR=path.resolve(__dirname,”…");for(;!fs.existsSync(${ROOT_DIR}/package.json);){const e=path.resolve(ROOT_DIR,"…");if(e===ROOT_DIR){ROOT_DIR=process.cwd();break}ROOT_DIR=e}const options={EXT_DIR:{type:“path”,default:path.resolve(ROOT_DIR,“config/ext”)},MONGODB_CONNECTION_URL:{type:“string”,default:“mongodb://127.0.0.1/genieacs”},CWMP_WORKER_PROCESS

SyntaxError: Unexpected reserved word
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

I tried search on this forum, but I don’t see that error coming up.

Any ideas?
Thanks!
–John

Whoops.

I was still running node v8 from the original 1.1 install

Installed/used v10, and error disappeared.

Chalk this one up to no RTFM.

1 Like