Picture of Juan Pérez
SyntaxError: Unexpected token ILLEGAL
by Juan Pérez - Thursday, 18 February 2016, 11:03 PM
 

Hi.

I have updated the adapt authoring, but do not worked anymore.

 

PLease help


Picture of Steven Swanepoel
Re: SyntaxError: Unexpected token ILLEGAL
by Steven Swanepoel - Friday, 19 February 2016, 1:51 AM
 

Same thing has happened to me. I'm running a Windows PC and my Adapt is set up on localhost:5000

My error as follows:

C:\Adapt Authoring Tool\adapt_authoring>node server

C:\Adapt Authoring Tool\adapt_authoring\lib\usermanager.js:139
var tenantName = `${profile.auth}-${newUser._id}`;
^
SyntaxError: Unexpected token ILLEGAL
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 Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Adapt Authoring Tool\adapt_authoring\lib\permissions.js:5:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

 

Picture of Brian Quinn
Re: SyntaxError: Unexpected token ILLEGAL
by Brian Quinn - Friday, 19 February 2016, 9:10 AM
 

Stephen,

You're running an older, unsupported version of Node.js.  Upgrade to Node.js 4.2 or later and this error will go away.

Regards,

Brian

Picture of Steven Swanepoel
Re: SyntaxError: Unexpected token ILLEGAL
by Steven Swanepoel - Sunday, 21 February 2016, 11:13 PM
 

Thanks Brian, your suggestion worked :)