Picture of Chad Smith
Adapt Authoring Installation Issue
by Chad Smith - Sunday, 24 December 2017, 7:44 PM
 

Hello,

I am installing Adapt Authoring Tool on a EC2 server on AWS with Ubuntu 14_04. I completed the entire process, but when it was supposed to start up and get my information instead it produced this below. I am very new to this and do not have very good technical skills so please spell out the solution so that anyone can understand. Thank you for any help or guidance you can provide.

ubuntu@ip-172-31-39-56:~/adapt_authoring$ sudo node install

/home/ubuntu/adapt_authoring/install.js:266
exit(0, `Installation completed successfully, the application can now be
^
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 Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
ubuntu@ip-172-31-39-56:~/adapt_authoring$ node server

/home/ubuntu/adapt_authoring/lib/application.js:363
logger.log('error', Check for updates failed, ${error});
^
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. (/home/ubuntu/adapt_authoring/server.js:2:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
ubuntu@ip-172-31-39-56:~/adapt_authoring$ sudo /adapt_authoring$ node server
sudo: /home/ubuntu/adapt_authoring$: command not found
ubuntu@ip-172-31-39-56:/adapt_authoring$ sudo node install

/home/ubuntu/adapt_authoring/install.js:266
exit(0, `Installation completed successfully, the application can now be
^
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 Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
ubuntu@ip-172-31-39-56:~/adapt_authoring$ sudo node server

/home/ubuntu/adapt_authoring/lib/application.js:363
logger.log('error', Check for updates failed, ${error});
^
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. (/home/ubuntu/adapt_authoring/server.js:2:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
ubuntu@ip-172-31-39-56:~/adapt_authoring$

Here is a list of every step that was taken.

Step: 1

Set Up Ubuntu 14.04.5 LTS / on free tier AWS / EC2

Step: 2

Connect the instance to Iterm.

Step:3

ubuntu@ip-172-31-39-56:~$ sudo apt-get update

Step: 4

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927

Step: 5

echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2multivers

Step: 6

sudo apt-get update

Step: 7

sudo apt-get install -y mongodb-org

Step: 8

sudo service mongod start

Step: 9

sudo apt-get install git

Step: 10

git config --global user.name “????????"

Step: 11

git config --global user.email “????@???.???”

Step: 12

sudo apt-get install python-software-properties

Step:13

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

Step: 14

sudo apt-get install nodejs

Step: 15

sudo apt-get install nodejs

Step: 16

node —version

Step: 17

sudo apt-get install npm

Step: 18

node —version

Step: 19

sudo add-apt-repository ppa:mc3man/trusty-media

Step: 20

sudo apt-get update

Step: 21

sudo apt-get install ffmpeg

Step:22

sudo apt-get install freiOr-plugins

Step:23

sudo apt-get install freior-plugins

Step: 24

sudo npm install -g grunt-cli

Step: 25

grunt —version

Step: 26

sudo apt-get install libssl-dev

Step: 26

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

Step: 27

sudo apt-get update

Step: 27

sudo apt-get upgrade

Step: 28

sudo apt-get dist-upgrade

Step: 29

sudo npm install -g adapt-cli

Step: 30

sudo apt-get install nodejs-legacy

Step: 31

git clone https://github.com/adaptlearning/adapt_authoring.git

Step: 32

ls

Step: 33

cd adapt_authoring

Step: 34

~/adapt_authoring$

Step: 35

sudo npm install —production

Step: 36

sudo node install

Step: 37

sudo node server

Picture of Fabio Beoni
Re: Adapt Authoring Installation Issue
by Fabio Beoni - Wednesday, 10 January 2018, 9:50 AM
 

Hi,

what version of node are you running?

I would suggest you to install node using NVM.

Cheers, Fabio.