Picture of Luca Cotta Ramusino
grunt build fails in powershell
by Luca Cotta Ramusino - Wednesday, 6 August 2014, 6:53 PM
 

Hi all, not having much luck with these tools I'm afraid. Downloaded git, nodejs, adapt-cli and grunt-cli in windows. 

Created the test course, everything looked ok.

Tried to "grunt build" and this is what I got (from powershell)

PS C:\Users\Luca\test-course> grunt build
Loading "less.js" tasks...ERROR
>> Error: Cannot find module 'async'
Loading "connect.js" tasks...ERROR
>> Error: Cannot find module 'cookie-signature'
Warning: Task "less" not found. Use --force to continue.

Aborted due to warnings.

Trying to run the same command from cygwin bash produced the same error (so not an issue of dos/unix endings etc)

Luca@Luca-Notebook /cygdrive/c/users/luca/test-course
$ grunt build
Loading "less.js" tasks...ERROR
>> Error: Cannot find module 'async'
Loading "connect.js" tasks...ERROR
>> Error: Cannot find module 'cookie-signature'
Warning: Task "less" not found. Use --force to continue.

Aborted due to warnings.

Any clue as to what I might be doing wrong?

 

Thanks in advance,

 

L.

Picture of Daryl Hedley
Re: grunt build fails in powershell
by Daryl Hedley - Thursday, 7 August 2014, 7:55 AM
 

Hey Luca,

Have you run "npm install" and then "adapt install"?

Thanks,

Daryl