# Demo app fails to start

**URL:** <https://discourse.lynckia.com/t/demo-app-fails-to-start/1012>\
**Category:** Uncategorized\
**Created:** [July 14, 2020, 7:08pm UTC](https://discourse.lynckia.com/t/demo-app-fails-to-start/1012 "2020-07-14T19:08:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tribwatts](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tribwatts](https://discourse.lynckia.com/u/tribwatts)\
**Post date:** [July 14, 2020, 7:08pm UTC](https://discourse.lynckia.com/t/demo-app-fails-to-start/1012/1 "2020-07-14T19:08:24Z")

</div>

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](https://config.plain) = true;

module.exports = config;  
I randomly picked the service Id and key.

Please advise.

Thanks

---

<div class="post-metadata">

**Author:** ![tribwatts](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tribwatts](https://discourse.lynckia.com/u/tribwatts)\
**Post date:** [July 14, 2020, 7:13pm UTC](https://discourse.lynckia.com/t/demo-app-fails-to-start/1012/2 "2020-07-14T19:13:03Z")

</div>

I changed the nuve host entry in config.js file to [http://192.168.1.117:3001](http://192.168.1.117:3001) I got this error during the start of demo app:

> 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/npm-debug.log  
demo@demo:~/licode-demos$

---

<div class="post-metadata">

**Author:** ![tribwatts](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tribwatts](https://discourse.lynckia.com/u/tribwatts)\
**Post date:** [July 14, 2020, 7:19pm UTC](https://discourse.lynckia.com/t/demo-app-fails-to-start/1012/3 "2020-07-14T19:19:02Z")

</div>

This is how the screen looks

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/lynckia/original/1X/48ec1dbeb01d388dee115c8bd30b43a274ef6c38.png)
