Hi Guys,
I am new to community. I configured the Licode server on ubuntu 16.04. I installed the demo app in a seperate VM running Ubuntu 16.04. When I try to start the demo app, I get the following error:
demo@demo:~/licode-demos$ sudo npm start
[sudo] password for demo:
application-name@0.0.1 start /home/demo/licode-demos
node app.js
/home/demo/licode-demos/node_modules/debug/src/node.js:132
let val = process.env[key];
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions…js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/home/demo/licode-demos/node_modules/debug/src/index.js:9:19)
at Module._compile (module.js:410:26)
at Object.Module._extensions…js (module.js:417:10)
npm ERR! Linux 4.4.0-185-generic
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! application-name@0.0.1 start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the application-name@0.0.1 start script ‘node app.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the application-name package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs application-name
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls application-name
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/demo/licode-demos/
This is my config.js file:
ar config = {};
config.nuve_host = ‘192.168.1.117’;
config.service = {};
config.service.id =‘531b26113e74ee30500001’;
config.service.key = ‘mykey’;
config.demo_host = ‘192.168.1.155’; // Without “http”, just the host.
config.http_port = 80;
config.https = false;
config.https_port = 443;
config.ca_certs = undefined;
//config.plain = true;
module.exports = config;
I randomly picked the service Id and key.
Please advise.
Thanks