Picture of Manoharan Murugeson
Can't pass through the preliminary installation stages
by Manoharan Murugeson - Friday, 1 September 2017, 1:54 PM
 

Hi, 

I went through an excruciating 3 days trying to install the preliminary packages, like Node.js, Grunt and then of course adapt.cli. Nothing works and I am still stuck. I tried github, google and you tube and still no solution. Can someone help please?

My system : Mac OS Sierra

192:~ macbook$ git version

git version 2.14.1

192:~ macbook$ node -v

v6.11.2

192:~ macbook$ npm -v

5.3.0

 

192:~ macbook$ ls is attached. 

 

Problems: 

npmWARNonload-script failed to require onload script npm-autoinit/autoinit

npmWARNonload-script Error: Cannot find module 'npm-autoinit/autoinit'

npmWARNonload-script     at Function.Module._resolveFilename (module.js:469:15)

npmWARNonload-script     at Function.Module._load (module.js:417:25)

npmWARNonload-script     at Module.require (module.js:497:17)

npmWARNonload-script     at require (internal/module.js:20:19)

npmWARNonload-script     at cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:11)

npmWARNonload-script     at /usr/local/lib/node_modules/npm/lib/npm.js:356:16

npmWARNonload-script     at /usr/local/lib/node_modules/npm/lib/config/core.js:81:7

npmWARNonload-script     at Array.forEach (native)

npmWARNonload-script     at /usr/local/lib/node_modules/npm/lib/config/core.js:80:13

npmWARNonload-script     at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)

npmWARNonload-script  { Error: Cannot find module 'npm-autoinit/autoinit'

npmWARNonload-script     at Function.Module._resolveFilename (module.js:469:15)

npmWARNonload-script     at Function.Module._load (module.js:417:25)

npmWARNonload-script     at Module.require (module.js:497:17)

npmWARNonload-script     at require (internal/module.js:20:19)

npmWARNonload-script     at cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:11)

npmWARNonload-script     at /usr/local/lib/node_modules/npm/lib/npm.js:356:16

npmWARNonload-script     at /usr/local/lib/node_modules/npm/lib/config/core.js:81:7

npmWARNonload-script     at Array.forEach (native)

npmWARNonload-script     at /usr/local/lib/node_modules/npm/lib/config/core.js:80:13

npmWARNonload-script     at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)

npmWARNonload-script   stack: 'Error: Cannot find module \'npm-autoinit/autoinit\'\n    at Function.Module._resolveFilename (module.js:469:15)\n    at Function.Module._load (module.js:417:25)\n    at Module.require (module.js:497:17)\n    at require (internal/module.js:20:19)\n    at cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:11)\n    at /usr/local/lib/node_modules/npm/lib/npm.js:356:16\n    at /usr/local/lib/node_modules/npm/lib/config/core.js:81:7\n    at Array.forEach (native)\n    at /usr/local/lib/node_modules/npm/lib/config/core.js:80:13\n    at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)',

npmWARNonload-script   code: 'MODULE_NOT_FOUND' }

npmWARN macbook@1.0.0 No description

npmWARN macbook@1.0.0 No repository field.

 

I use Homebrew to install. I am a complete novice to Terminal. 

Thank you.

Mano

 


Picture of Matt Leathes
Re: Can't pass through the preliminary installation stages
by Matt Leathes - Friday, 1 September 2017, 2:47 PM
 

Are you doing this with the ultimate aim of trying to install the Framework - or the Authoring Tool?

There shouldn't be any need to use homebrew, you may be complicating matters by doing so...

Which instructions did you follow and at what point did you get stuck?

Going by the node_modules folder location in your ls output screenshot, it looks like you might have tried to run $ npm install in your home folder...

Picture of Manoharan Murugeson
Re: Can't pass through the preliminary installation stages
by Manoharan Murugeson - Friday, 1 September 2017, 4:39 PM
 

Hi Matt, 

Thank you for your quick response. I am interested in the Authoring Tools (I am subject matter expert). What I am trying to do is use Adapt eLearning platform to offer my courses. 

I used Homebrew as suggested for Mac by some sites that I can't remember. But most of the instructions were from: :https://github.com/adaptlearning/adapt_authoring/wiki/Install-on-Server#1.

I followed the instructions as laid out at the site. But got stuck at $ npm install. My folder/directory is ~ macbook$ (I don't know if I am doing the right thing). 

This is the current situation as below:

192:~ macbook$ node -v

v8.4.0

192:~ macbook$ npm -v

-bash: /usr/local/bin/npm: No such file or directory

192:~ macbook$ git --version

git version 2.14.1

192:~ macbook$ 

 

Am I doing the wrong thing? Am I running npm install from the wrong folder? Your help in guiding me will be greatly appreciated. Btw my knowledge of the Terminal is 1 (in a scale of 1 - 10 - 10 being the highest). 

Thanks again. 

 

Picture of Matt Leathes
Re: Can't pass through the preliminary installation stages
by Matt Leathes - Friday, 1 September 2017, 5:25 PM
 

OK so I've never actually installed the authoring tool myself - I mainly work directly with the framework. But looking at the instructions, I can see it says:

Navigate to the adapt_authoring folder you cloned earlier to make it the current working directory. Run the following command:
npm install --production

So it looks like the step you missed out was to do $ cd adapt_authoring in the terminal before then running $ npm install --production

I would recommend you work back through the installation instructions, making sure you've not missed anything else - for example you don't mention having installed MondoDB, which is certainly going to be required.

It might also be worth checking which version of Node is supported by the Authoring Tool. It's says 'LTS' on that page...but that may have been written some time ago. I recall someone saying it needed v4.x.. might be worth asking in the authoring tool chat room.

Btw my knowledge of the Terminal is 1 (in a scale of 1 - 10 - 10 being the highest)

Well I reckon after this you can claim to have upgraded to a 2 at least ;-) If you haven't already read Just enough command line for installing, that's worth reading.

Picture of Manoharan Murugeson
Re: Can't pass through the preliminary installation stages
by Manoharan Murugeson - Sunday, 3 September 2017, 6:31 AM
 

Hi Matt, 

Finally, everything is installed and I managed to get through to the log in interface. I did it with plenty of help from You-Tube, Google, etc., and of course with some hints from you in the previous reply. 

But now I have a problem of logging in. Apparently, I tried too many times with wrong password and it is now blocked. I sent and email today and waiting for access and change the password. 

Hope to get on board soon. 

 

Thanks for everything and regards. 

 

Picture of Sam Tsiu
Re: Can't pass through the preliminary installation stages
by Sam Tsiu - Monday, 4 September 2017, 2:59 AM
 

Hello Manoharan

It is very likely that you will need to recover the password manually unless you have set the mailer for password recovery during the installation which is very unlikely.

For the manual way, here's the steps:

1) download this passwordgen.js and save it in your authoring_tool root directory. 

2) Inside your authoring_tool root directory, run this command to generate a new password hash string

node passwordgen.js mynewpassword

* Replace `mynewpassword` with your preferred password. 

Remember, this command must be run inside the authoring_tool root directory with the passwordgen.js file you saved previously as it requires some other package to run which comes with the authoring_tool installation.

3) the command will generate some hash string like this on the screen 

$2a$10$gEUz3xnX3KkC1/.g65Ri7.UgfHguDGk.OAuiHho38hutjWO/ta5hy

copy and save it as you'll need them to replace your old password hash string shortly.

4) download the mongodb database tool - Robo 3T from here and install.

5) open the Robo 3T and connect to your mongodb database localhost (localhost:27017)

Important: make sure mongodb is running.

6) double click adapt-tenant-master =>Collections =>users =>yourUserID

7) find the password field, right click 'edit document', then replace the hash string in the password value filed with the hash you generated earlier and save.

then try to log on with your new password. Your new password is not the hash string but the <myNewPassword>. 

Good luck!

Sam

 

 

Picture of Manoharan Murugeson
Re: Can't pass through the preliminary installation stages
by Manoharan Murugeson - Monday, 4 September 2017, 8:14 AM
 
Hi Sam, 
 
Thank you for getting back to me quick. I followed your instructions and the output was this at the terminal:
 

info: [04 Sep 2017 15:58:02 +08:00] - local

info: [04 Sep 2017 15:58:05 +08:00] Adapt authoring tool v0.3.0

info: [04 Sep 2017 15:58:05 +08:00] Adapt Framework v2.2.1

info: [04 Sep 2017 15:58:05 +08:00] Connection established: adapt-tenant-master

info: [04 Sep 2017 15:58:05 +08:00] Server started listening on port 5000

warn: [04 Sep 2017 15:58:05 +08:00] - Authenticated User update failed!

warn: [04 Sep 2017 15:58:05 +08:00] - Course Creator update failed!

warn: [04 Sep 2017 15:58:05 +08:00] - Product Manager update failed!

warn: [04 Sep 2017 15:58:05 +08:00] - Tenant Admin update failed!

warn: [04 Sep 2017 15:58:05 +08:00] - Super Admin update failed!

Inline image 1

I used nano at the terminal to save the passwordgen.js file which resides in adapt_authoring directory

At the command line (terminal) l changed node passwordgen.js <12345677) (eg) and entered. 

The result was as above. 

 

Looks like I screwed again. The users have no record.

So what should I do now?

Regards, and thanks.

Mano

 

Picture of Sam Tsiu
Re: Can't pass through the preliminary installation stages
by Sam Tsiu - Monday, 4 September 2017, 9:12 AM
 

Hi Mano,

you can always reconfigure the application.

Make sure you have the MongoDB running in one terminal, then in another terminal, inside the Authoring_tool root directory, run:

node install

Just follow the instructions on screen and accept the default choices. This will overwrite your previous config and reset the Authoring tool for you.

Good luck!

Sam

Picture of Manoharan Murugeson
Re: Can't pass through the preliminary installation stages
by Manoharan Murugeson - Monday, 4 September 2017, 10:07 AM
 

Hi Sam, 

 

This is what happened after node install. 

 SMTP username 

> SMTP password 

> Sender email address harangeson@gmail.com

readline.js:982

            throw err;

            ^

 

Error: EACCES: permission denied, open '.env'

    at Error (native)

    at Object.fs.openSync (fs.js:641:18)

    at saveConfig (/Users/macbook/adapt_authoring/install.js:488:29)

    at /Users/macbook/adapt_authoring/install.js:242:8

    at /Users/macbook/adapt_authoring/node_modules/prompt/lib/prompt.js:316:32

    at /Users/macbook/adapt_authoring/node_modules/utile/node_modules/async/lib/async.js:142:25

    at assembler (/Users/macbook/adapt_authoring/node_modules/prompt/lib/prompt.js:313:9)

    at /Users/macbook/adapt_authoring/node_modules/prompt/lib/prompt.js:322:32

    at /Users/macbook/adapt_authoring/node_modules/prompt/lib/prompt.js:597:5

    at Interface.onLine (/Users/macbook/adapt_authoring/node_modules/read/lib/read.js:111:5)

    at emitOne (events.js:96:13)

    at Interface.emit (events.js:188:7)

    at Interface._onLine (readline.js:233:10)

    at Interface._line (readline.js:585:8)

    at Interface._ttyWrite (readline.js:862:14)

    at ReadStream.onkeypress (readline.js:120:10)

192:adapt_authoring macbook$ 

 

I do not know what is SMTP server and password, so I just entered. 

Sorry mate, giving you too much problems

Mano

Picture of Sam Tsiu
Re: Can't pass through the preliminary installation stages
by Sam Tsiu - Monday, 4 September 2017, 11:06 AM
 

Hi Mano

no problem at all.

Just leave smtp username password and sender emails empty during installation. Those are the mailer settings which you really don't bother for local installation.

When prompt for admin email and password, be sure to provide.

 

 

Picture of Manoharan Murugeson
Re: Can't pass through the preliminary installation stages
by Manoharan Murugeson - Monday, 4 September 2017, 10:39 AM
 

Sam, 

 

Ok. It is working now after your instructions. I will try to change my password using your earlier instructions. 

 

Thanks alot.

Mano

Picture of Sam Tsiu
Re: Can't pass through the preliminary installation stages
by Sam Tsiu - Monday, 4 September 2017, 11:07 AM
 

The manual method is only when you forgot your admin password.

If you can login the Authoring tool, you can change your password within the system.

Picture of Manoharan Murugeson
Re: Can't pass through the preliminary installation stages
by Manoharan Murugeson - Monday, 4 September 2017, 11:44 AM
 

Sam, 

I do not know my admin password. What I am doing now is resorting to your earlier instructions where I generated the password, edit the user at Robo3T and give a new password. I hope this is a right method. 

Mano

Picture of Sam Tsiu
Re: Can't pass through the preliminary installation stages
by Sam Tsiu - Monday, 4 September 2017, 12:52 PM
 

Great to know you're able to log in and enjoy this great tool.

There are two parts during installation that you're asked to provide email and password.

the first part is the mailer setting part, with mailer you can recover forgotten password from the web login interface.

you were asked to provide:

- SMTP service

- SMTP username

- SMTP password

- sender email address

These has got nothing to do with your admin account and password.

the second part where you're prompted to provide:

Email address (that's your login email or admin account)

Password (that's your admin password)

Cheers

Sam

Picture of Manoharan Murugeson
Re: Can't pass through the preliminary installation stages
by Manoharan Murugeson - Monday, 4 September 2017, 11:49 AM
 

Matt & Sam, 

Thanks a bundle. Now I am able to access the authoring tool. Will update you guys on my progress. 

Regards,

Mano