Picture of Luca Cotta Ramusino
How do I know if grunt is installed correctly?
by Luca Cotta Ramusino - Wednesday, 6 August 2014, 5:32 PM
 

Hi all, I think I installed adapt and grunt correctly, via sudo npm install... I was able to create a test course.

Then, when I tried "grunt build" this is what I got

luca@luca-laptop:~/test-course$ grunt build
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'matchdep'
Warning: Task "build" not found. Use --force to continue.

Aborted due to warnings.

I seem to get the same error for any grunt command

luca@luca-laptop:~/test-course$ grunt server
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'matchdep'
Warning: Task "server" not found. Use --force to continue.

Aborted due to warnings.

How do I know if grunt was installed correctly?

Thanks,

Luca

Picture of Ignacio Cinalli
Re: How do I know if grunt is installed correctly?
by Ignacio Cinalli - Thursday, 7 August 2014, 2:24 AM
 

Hi Luca, I have installed node/grunt/adapt on Ubuntu
nvm worked for me.

Picture of Chris Jones
Re: How do I know if grunt is installed correctly?
by Chris Jones - Thursday, 7 August 2014, 8:34 AM
 

Hello Luca,

'matchdep' is a dependency of the build system. The task runner is reporting that it is missing, I suspect that the npm install command did not run and complete successfully.

Try running it again from inside the course folder it should complete with any errors and report success.

Chris