Picture of Johan Lavenius
Cannot find module 'load-grunt-config'
by Johan Lavenius - Thursday, 16 January 2020, 4:12 PM
 

Adapt authoring tool v0.9.0
Adapt framework 2.4.0.
Node: v8.10.0
Npm: 3.5.2

The authoring tool seems to run fine until i try to export och preview. I then get:

info [16 Jan 20 16:10:41 +00:00] grunt server-build:prod --outputdir=courses/5d1a146c2fb98b05f66d521b/5e2078a4f55b9f09b458efa1/build --theme=5d1a150f2fb98b05f66d5238 --menu=adapt-contrib-boxMenu

error [16 Jan 20 16:10:42 +00:00] exec error: Error: Command failed: grunt server-build:prod --outputdir=courses/5d1a146c2fb98b05f66d521b/5e2078a4f55b9f09b458efa1/build --theme=5d1a150f2fb98b05f66d5238 --menu=adapt-contrib-boxMenu

error [16 Jan 20 16:10:42 +00:00] stdout error: Loading "Gruntfile.js" tasks...ERROR

>> Error: Cannot find module 'load-grunt-config'

Warning: Task "server-build:prod" not found. Use --force to continue. 

Aborted due to warnings.

Picture of Johan Lavenius
Re: Cannot find module 'load-grunt-config'
by Johan Lavenius - Friday, 17 January 2020, 10:38 AM
 

I didn't solve this but reverted to a backup. I think it was some sort of permission problem.

Picture of Tom Greenfield
Re: Cannot find module 'load-grunt-config'
by Tom Greenfield - Friday, 17 January 2020, 11:21 AM
 

Hi Johan,

I'm glad you found a workaround.

If we take the error message at face value, it looks as though one of your node modules had gone awry somehow. I would've rectified by navigating to the temp/<tenant id>/adapt_framework folder on the command line and manually running an npm install.

Picture of Johan Lavenius
Re: Cannot find module 'load-grunt-config'
by Johan Lavenius - Friday, 17 January 2020, 12:10 PM
 

I think I have a backup of the buggy version so I can try that. :-)