Picture of Aidan S
module.js:538 Error: Cannot find module 'internal/util/types'
by Aidan S - Thursday, 2 November 2017, 5:43 AM
 

Hey!

Upon reaching the node install stage of the Developer's Install wiki page, I unfortunately encountered this error and I am unable to proceed. Is someone able to help me out? Would be much appreciated!

Thanks!

Picture of Mansi Rao
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by Mansi Rao - Monday, 18 December 2017, 3:30 PM
 

Even I have same error with different element. Error code was same but my concern is with applyEach. I am using NodeJS of version Node.js 6.9.2. Do I need to update before performing any further developments. Or is this error has no deal with version

./internal/applyEach??

Suggestions/Corrections please.

Regards..

Mansi Rao

 

Picture of Matt Leathes
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by Matt Leathes - Thursday, 2 November 2017, 9:33 AM
 

It's probably the version of node you are running (8.9.0). Both the authoring tool and the framework support the LTS version of Node but it has only very recently switched from v6 to v8 and we haven't quite caught up yet.

Picture of RunawayHorse .
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by RunawayHorse . - Sunday, 3 December 2017, 11:17 AM
 

Hey Matt,

 

Thanx for your help with my previous errors 🙏🏽

When running the node-install command (step 4 of the instruction) I am stuck with this error: 

Error: Cannot find module 'internal/util/types'

I attach my full log.

 

I understood the teams haven't yet caught up with it. Is there a workaround for just now or do I need to wait for further updates?

 

My Node version is 8.9.1

Mac OS High Sierra 10.13.1

 

Thanx a lot for your advice.


Picture of Matt Leathes
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by Matt Leathes - Monday, 4 December 2017, 9:59 AM
 

For now the best workaround is to use NodeJS v6

Picture of RunawayHorse .
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by RunawayHorse . - Monday, 4 December 2017, 2:17 PM
 

Hi Matt,

 

Thanx a lot for your help. Have just finished the installation process, can access Adapt dashboard fine. Seems to be working fine 🤩

 

I had this warning when running node server:

(node:1436) 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.

info: [04 Dec 2017 13:56:52 +00:00] configuration loaded from /Users/livenglishcoach/adapt_authoring/conf/config.json

info: [04 Dec 2017 13:56:52 +00:00] Supporting the following authentication types:

info: [04 Dec 2017 13:56:52 +00:00] - local

info: [04 Dec 2017 13:56:53 +00:00] Adapt authoring tool 0.4.0.

info: [04 Dec 2017 13:56:53 +00:00] Adapt framework 2.2.3.

info: [04 Dec 2017 13:56:54 +00:00] Connection established: adapt-tenant-master

 

Is it asking me to upgrade it back to the latest version? 🤯

Do I need to do anything about it at this stage?

 

Thanx a lot!

Picture of Matt Leathes
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by Matt Leathes - Monday, 4 December 2017, 2:58 PM
 

if it all seems to be working I think you can safely ignore that warning

Picture of RunawayHorse .
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by RunawayHorse . - Monday, 4 December 2017, 2:58 PM
 

I think this is what I have.

LIVEnglishCoach:adapt_authoring livenglishcoach$ node -v

v6.0.0

Or is there another version 6?

Picture of Matt Leathes
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by Matt Leathes - Monday, 4 December 2017, 3:42 PM
 

Yes, another 29 6.x versions in fact: https://nodejs.org/en/download/releases/

v6.12.0 was the last release in that line but if 6.0.0 is working for you that's probably fine

Picture of Chad Smith
Re: module.js:538 Error: Cannot find module 'internal/util/types'
by Chad Smith - Friday, 29 December 2017, 9:51 AM
 

I'm also having this issue. How would one go about uninstalling nodejs v8, and down grade to nodejs v6? What command line prompts accomplish this? Thank you.