khtan (60) [Avatar] Offline
#1

Hi,

I am a newbie and was able to go through the instructions in CHO2/README.md
Although I am on Windows 10, both the specific steps with curl and Invoke-RestMethod all work
because I have unxutils as well as Powershell.

At the Listings 2.4 - 2.7, the steps are :
a) npm install
b) npm start
c) npm test

(c) fails with the following error:

> c:\cprojects\pp\mountebank\mountebank-in-action\Ch02>npm test
> npm test
>
> > petstore@0.1.0 test c:\cprojects\pp\mountebank\mountebank-in-action\Ch02
> > grunt
>
> Running "mb:restart" (mb) task
> node mb restart
> >> module.js:538
> >> throw err;
> >> ^
> >>
> >> Error: Cannot find module 'c:\cprojects\pp\mountebank\mountebank-in-action\Ch02\mb'
> >> at Function.Module._resolveFilename (module.js:536:15)
> >> at Function.Module._load (module.js:466:25)
> >> at Function.Module.runMain (module.js:676:10)
> >> at startup (bootstrap_node.js:187:16)
> >> at bootstrap_node.js:608:3

It looks like the mb folder is missing in the code repository.

Hope this can be resolved. Thanks,