Can't find module 'webpagetest' when running in Linux
hcolonna opened this issue · 4 comments
hcolonna commented
vasikarla-zz commented
@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 commented
Here are the files , I gave you the npm output, the node program and the
error i'm getting . Thanks for your help
*Henry Colonna*
*Senior Performance Engineer *
On Thu, Mar 15, 2018 at 11:07 PM, Raj Vasikarla ***@***.***> wrote:
@hcolonna <https://github.com/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....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL99VybNI3KfVIKC8_AjwEw9Zo-DBzaaks5teyx6gaJpZM4Smo_Q>
.
npm info it worked if it ends with ok
npm verb cli [ '/home/AD/hcolonna/bin/node-v9.8.0-linux-x64/bin/node',
npm verb cli '/home/AD/hcolonna/bin/node/bin/npm',
npm verb cli 'install',
npm verb cli 'webpagetest',
npm verb cli '-g',
npm verb cli '--verbose' ]
npm info using npm@5.6.0
npm info using node@v9.8.0
npm verb npm-session 371149219fecaa4f
npm http fetch GET 304 https://registry.npmjs.org/webpagetest 322ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/commander 66ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/entities 156ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/xml2js 158ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/csv 164ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mocha 171ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/graceful-readlink 46ms (from c ache)
npm http fetch GET 304 https://registry.npmjs.org/csv-generate 94ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/csv-parse 97ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/csv-stringify 102ms (from cach e)
npm http fetch GET 304 https://registry.npmjs.org/stream-transform 106ms (from c ache)
npm http fetch GET 304 https://registry.npmjs.org/lodash.get 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/browser-stdout 170ms (from cac he)
npm http fetch GET 304 https://registry.npmjs.org/diff 169ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/debug 172ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/escape-string-regexp 171ms (fr om cache)
npm http fetch GET 304 https://registry.npmjs.org/glob 179ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mkdirp 141ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/he 219ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/json3 219ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/growl 223ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash.create 223ms (from cach e)
npm http fetch GET 304 https://registry.npmjs.org/supports-color 63ms (from cach e)
npm http fetch GET 304 https://registry.npmjs.org/ms 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fs.realpath 118ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/inflight 127ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/inherits 128ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minimatch 128ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/once 133ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/path-is-absolute 134ms (from c ache)
npm http fetch GET 304 https://registry.npmjs.org/wrappy 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/brace-expansion 44ms (from cac he)
npm http fetch GET 304 https://registry.npmjs.org/balanced-match 56ms (from cach e)
npm http fetch GET 304 https://registry.npmjs.org/concat-map 59ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash._baseassign 86ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash._isiterateecall 88ms (f rom cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash._basecreate 93ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash._basecopy 54ms (from ca che)
npm http fetch GET 304 https://registry.npmjs.org/lodash.keys 61ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash._getnative 71ms (from c ache)
npm http fetch GET 304 https://registry.npmjs.org/lodash.isarray 72ms (from cach e)
npm http fetch GET 304 https://registry.npmjs.org/lodash.isarguments 78ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minimist 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/has-flag 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/sax 56ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/xmlbuilder 59ms (from cache)
npm verb correctMkdir /home/AD/hcolonna/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /home/AD/hcolonna/.npm/_locks/staging-759887f548543863.lock for /home/AD/hcolonna/bin/node-v9.8.0-linux-x64/lib/node_modules/.staging
npm info lifecycle webpagetest@0.3.8~preuninstall: webpagetest@0.3.8
npm info lifecycle webpagetest@0.3.8~uninstall: webpagetest@0.3.8
npm verb unbuild rmStuff webpagetest@0.3.8 from /home/AD/hcolonna/bin/node-v9.8. 0-linux-x64/lib/node_modules
npm info lifecycle webpagetest@0.3.8~postuninstall: webpagetest@0.3.8
npm info lifecycle webpagetest@0.3.8~preinstall: webpagetest@0.3.8
npm info linkStuff webpagetest@0.3.8
npm verb linkBins webpagetest@0.3.8
npm verb linkBins [ { webpagetest: 'bin/webpagetest' },
npm verb linkBins '/home/AD/hcolonna/bin/node-v9.8.0-linux-x64/bin',
npm verb linkBins true ]
npm verb linkMans webpagetest@0.3.8
/home/AD/hcolonna/bin/node-v9.8.0-linux-x64/bin/webpagetest -> /home/AD/hcolonna /bin/node-v9.8.0-linux-x64/lib/node_modules/webpagetest/bin/webpagetest
npm info lifecycle webpagetest@0.3.8~install: webpagetest@0.3.8
npm info lifecycle webpagetest@0.3.8~postinstall: webpagetest@0.3.8
npm verb unlock done using /home/AD/hcolonna/.npm/_locks/staging-759887f54854386 3.lock for /home/AD/hcolonna/bin/node-v9.8.0-linux-x64/lib/node_modules/.staging
+ webpagetest@0.3.8
updated 1 package in 2.834s
npm verb exit [ 0, true ]
npm info ok
[hcolonna@hd1dprf01lx ~]$
login as: hcolonna
hcolonna@hd1dprf01lx.digital.hbc.com's password:
Last login: Fri Mar 16 11:34:52 2018 from 10.233.138.244
[hcolonna@hd1dprf01lx ~]$ ls *.js
webpagetestgo.js
[hcolonna@hd1dprf01lx ~]$ node webpagetestgo.js
module.js:545
throw err;
^
Error: Cannot find module 'WebPageTest'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:470:25)
at Module.require (module.js:593:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/AD/hcolonna/webpagetestgo.js:1:82)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
[hcolonna@hd1dprf01lx ~]$
josebolos commented
@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.
hcolonna commented
Thanks I will look at it
*Henry Colonna*
*Senior Performance Engineer *
…On Tue, May 1, 2018 at 10:54 AM, Jose Bolos ***@***.***> wrote:
@hcolonna <https://github.com/hcolonna> If I'm not mistaken, the name of
the module is webpagetest and not WebPagetest:
https://github.com/marcelduran/webpagetest-api/blob/
6bac270/package.json#L2
This could be causing the error that you're describing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL99VwH06gKGdBk6l88_10uFRmxS9P_dks5tuHcvgaJpZM4Smo_Q>
.