Picture of elijah jensen
Unexpected token ILLEGAL
by elijah jensen - Thursday, 30 June 2016, 10:18 AM
 

Hey guys,

 

I'm stuck installing the authoring tool, I get to installing node and I get this error:

Saschas-MBP-2:adapt_authoring-master Accipio$ sudo node install

/Users/Accipio/Downloads/adapt_authoring-master/lib/usermanager.js:153
              var tenantName = `${profile.auth}-${newUser._id}`;
                               ^
SyntaxError: Unexpected token ILLEGAL
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/Accipio/Downloads/adapt_authoring-master/lib/auth.js:21:19)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

 

I have attached screenshots of the error and the file it references. Also searched google for options but am unable to find any solutions.

Can someone help?

 


Picture of Brian Quinn
Re: Unexpected token ILLEGAL
by Brian Quinn - Friday, 1 July 2016, 4:15 PM
 

Hi Elijah,

It looks like you're possibly running an older, unsupported version of Node.js.  

Try upgrading to version 4.4.7 LTS.

Regards,

Brian

Picture of Nathan Mcilree
Re: Unexpected token ILLEGAL
by Nathan Mcilree - Tuesday, 20 September 2016, 8:36 AM
 

HI - I am also getting this on install and I have updated to 4.4.7

Now using node v4.4.7 (npm v2.15.8)

Picture of Erlend Stav
Re: Unexpected token ILLEGAL
by Erlend Stav - Thursday, 22 September 2016, 2:56 PM
 

I am also experiencing the same issue. I had the tool working, but then for some reason when I returned to it next time it produced this error.

I do not know whether it is related, but if I try to run "node upgrade.js" (in an attempt to update to the latest adapt version) I also get the same error message. 

Picture of Erlend Stav
Re: Unexpected token ILLEGAL
by Erlend Stav - Thursday, 22 September 2016, 3:11 PM
 

Just after writing my previous reply, I discovered what was the problem here.

I am running this from a Mac, and Finder had added a .DS_Store files inside the adapt_authoring directory and sub-directories. After removing this files from the routes subdirectory and from the main adapt_authoring the tool again starts.