Picture of Chad Smith
module.js:538 throw err
by Chad Smith - Friday, 29 December 2017, 9:41 AM
 

At the very end of the Adapt Authoring Tool install I get the error message below. I'm running a Mac, OSX 10.13.2, node v8.9.3, npm 5.5.1, ffmpeg version 3.4.1, and mongodb version v2.6.12. I'm very new to this please leave detailed instructions on the command line entries to correct this hiccup. Thank you in advance for any help or assistance you might provide. 

> The url this install will be accessible from (http://localhost:5000)
Now we need to configure the master tenant.
Tip: just press ENTER to accept the default value in brackets.

module.js:538
throw err;
^

Error: Cannot find module 'internal/util/types'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at evalmachine.<anonymous>:31:26
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
chackras:adapt_authoring chackras$ node server
module.js:538
throw err;
^

Error: Cannot find module 'internal/util/types'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at evalmachine.<anonymous>:31:26
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)

 

Tried to rerun:

chackras:adapt_authoring chackras$ node install

Found an existing config.json file. Do you want to use the values in this file during install?
> Use existing config values? y/N (N) y

This script will install the application. Please wait ...

Now setting configuration items.
> Are you using ffmpeg? y/N (N) y
> Will you be using an SMTP server? (used for sending emails) y/N (N) y
Now configuring the master tenant.

module.js:538
throw err;
^

Error: Cannot find module 'internal/util/types'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at evalmachine.<anonymous>:31:26
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
chackras:adapt_authoring chackras$ node server
module.js:538
throw err;
^

Error: Cannot find module 'internal/util/types'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at evalmachine.<anonymous>:31:26
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Applications/Adapt_Authoring_Tool/adapt_authoring/node_modules/bower/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)

Picture of Matt Leathes
Re: module.js:538 throw err
by Matt Leathes - Tuesday, 30 January 2018, 1:33 PM
 
I'm running a Mac, OSX 10.13.2, node v8.9.3

The installation instructions specify that you should be on Node v6...

Picture of Pedro Mendez
Re: module.js:538 throw err
by Pedro Mendez - Tuesday, 30 January 2018, 2:07 PM
 

Hi

Uninstall node v8.9 and re install v6  (http://stackabuse.com/how-to-uninstall-node-js-from-mac-osx/)

It worked for me but now I am getting other errors.

Let us know if everything worked for you.