catchpoint/WebPageTest.api-nodejs

Can't find module 'webpagetest' when running in Linux

hcolonna opened this issue · 4 comments

When I run the my js code in windows it works when ported to Linux i get Can't find module 'webpagetest'

I installed node.js on the Linux box and ran : npm install webpagetest -g under root.

using the CLI no issue, running the node JS fails

here is the full message
image

My aim is to automate the process

@hcolonna : could you do a npm install webpagetest -g --verbose and r provide the output here. Also, did you use sudo. I hope you didn't....

@hcolonna If I'm not mistaken, the name of the module is webpagetest and not WebPagetest:
https://github.com/marcelduran/webpagetest-api/blob/6bac270b59c44f1f4841231db14c16b8544e44ca/package.json#L2

This could be causing the error that you're describing.