catchpoint/WebPageTest.api-nodejs

webpagetest is not work under Ubuntu 14.10

odessky opened this issue · 2 comments

Hi

I install npm and node via apt:
apt-get install npm node

After I install webpagetest:
npm install webpagetest -g

It installed but not work:

webpagetest --help

No helps givens, no commands executed

If you are not using a private instance of webpagetest and run webpagetest test http://twitter.com/marcelduran and get a 400 error it means you don't have your API KEY setup. Request one at http://www.webpagetest.org/getkey.php

Also if you want the latest nodejs and npm:

On Ubuntu Server 14.04.1 LTS (I know it's not exactly 14.10) as of this writing, will only install nodejs v0.10.25 using sudo apt-get install nodejs by default. If you want the current version, v0.10.35, you can use nodesource's debian/ubuntu binaries. The installation is very simple:

curl -sL https://deb.nodesource.com/setup | sudo bash -

To install NodeSource repo. Then you can install or upgrade nodejs through apt-get as usual, example:

sudo apt-get upgrade nodejs

After this you may notice when running npm -v that you have v1.4.28 only. So then you do

sudo npm install npm -g

to get you npm v2.1.18. And then finally get webpagetest-api using the following

sudo npm install webpagetest -g

Source: https://github.com/nodesource/distributions and https://docs.npmjs.com/getting-started/installing-node