Picture of Neil Davis
Install authoring tool error
by Neil Davis - Thursday, 18 January 2018, 10:20 AM
 

Hi all,

I am installing the authoring tool on a Win 10 laptop. Following the Github install instructions but have got to the point of running the install script.

When i do I am presented with the following failure. Does anyone have an idea of why?

node install

This script will install the application.
Would you like to continue?
> Continue? Y/n (Y) y

We need to configure the tool before install.
Tip: just press ENTER to accept the default value in brackets.
> Server port (5000)
> Server name (localhost)
> Database host (localhost)
> Master database name (adapt-tenant-master)
> Database server port (27017)
> Data directory path (data)
> Session secret (value used when saving session cookie data) (your-session-secret)
> Git repository URL to be used for the authoring tool source code (https://github.com/adaptlearning/adapt_authoring.git)
> Git repository URL to be used for the framework source code (https://github.com/adaptlearning/adapt_framework.git)
> Specific git revision to be used for the framework. Accepts any valid revision type (e.g. branch/tag/commit) (tags/v2.2.3)
> Are you using ffmpeg? y/N (N) y
> Will you be using an SMTP server? (used for sending emails) y/N (N)
Now we need to configure the master tenant.
Tip: just press ENTER to accept the default value in brackets.

module.js:540
throw err;
^

Error: Cannot find module 'internal/util/types'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at evalmachine.<anonymous>:31:26
at Object.<anonymous> (C:\adapt_authoring-master\node_modules\bower\node_modules\graceful-fs\fs.js:11:1)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\adapt_authoring-master\node_modules\bower\node_modules\graceful-fs\graceful-fs.js:3:27)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)

Picture of Matt Leathes
Re: Install authoring tool error
by Matt Leathes - Thursday, 18 January 2018, 11:12 AM
 

Could you verify you're using Node v6.x as per the installation instructions?

Picture of Neil Davis
Re: Install authoring tool error
by Neil Davis - Thursday, 18 January 2018, 12:41 PM
 

Hi.. I wasn't but am now. However, its throwing up a new error now.

(node:5636) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
ERROR: Cannot connect to the MongoDB 'adapt-tenant-master' at 'localhost:27017'. Please check the details are correct and the database is running.

Install was unsuccessful. Please check the console output.

Picture of Matt Leathes
Re: Install authoring tool error
by Matt Leathes - Thursday, 18 January 2018, 1:24 PM
 

have you checked that 'the details are correct and the database is running'?

Picture of Neil Davis
Re: Install authoring tool error
by Neil Davis - Thursday, 18 January 2018, 1:43 PM
 

Hi.... When i open Mongo and press connect, the following message appears at the top of Mongo 'MongoDB not running on the provided host and port'

Picture of Neil Davis
Re: Install authoring tool error
by Neil Davis - Tuesday, 23 January 2018, 1:24 PM
 

Ive got MongoDB running now but on running 'node install', i'm getting the following error even though Mongo DB is running. Any ideas?

 

(node:5948) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
ERROR: Cannot connect to the MongoDB 'adapt-tenant-master' at 'localhost:27017'. Please check the details are correct and the database is running.

Install was unsuccessful. Please check the console output

Picture of Cosmin Simion
Re: Install authoring tool error
by Cosmin Simion - Monday, 5 February 2018, 10:38 AM
 

Hey Neil,

I've been running on same Mongo related errors. You can try running MongoDB as a service for your Operating System. If you are running Windows, follow the next steps:

Make sure that you added you /bin directory to you system variable PATH

First I executed this command:

D:\mongodb\bin>mongod --remove

First I executed this command after opening command prompt as administrator:

D:\mongodb\bin>mongod --dbpath=D:\mongodb --logpath=D:\mongodb\log.txt --install

After that right there in the command prompt execute:

services.msc

And look for MongoDB service and click start.

 

After this, just go back to node install for Adapt Authoring Tool. You should be good to go.

 

Picture of Sailesh Sundram
Re: Install authoring tool error
by Sailesh Sundram - Sunday, 11 February 2018, 11:10 PM
 

Hi Guys,

 

I'm getting the same original error

module.js:540
throw err;

 

I've checked that I have MongoDB running and I have the latest Node 6.1 version installed... any suggestions what I should try? I'm a newbie, so please be kind.