Installing Newman on Windows

Some users have reported issues while trying to install Newman on a Windows machine. We recently unpacked a brand-new Windows box, and went about installing Newman (even before installing Chrome.).

This is due to one dependency that we were using (jsdom-nogyp) being incompatible with Node 0.12.x. We had to switch to jsdom instead, which requires the NPM modules contextify and node-gyp. Building these modules require Python and the Visual Studio runtime to be installed (for Windows).

We're aware that downgrading Node to v0.10.x or installing Visual Studio are not appealing ideas, but until the jsdom-nogyp module starts supporting the latest version of Node, we'll have to compromise one way or the other.

Here's what you'll need to do to install the latest version of Newman on your system:

  • Install NodeJS – https://nodejs.org/download/. Click on the 32-bit or 64-bit Windows Installer package, depending on your machine configuration.
  • Add the Node executable to your system path. Go to the Control Panel > System and Security > System > Advanced System Settings > Environment variables. Append this to the end of the PATH variable: ;C:\Program Files\Nodejs
    If you installed Node in a different location, you'll need to set the PATH accordingly.
  • Install Python 2.x. The latest 2.x release available is 2.7.9 (https://www.python.org/downloads/release/python-279/). Get the Windows x86-64 MSI installer or Windows x86 MSI installer, and follow the instructions.
  • Open a command prompt, and type "node". The node environment should start. Press Ctrl-C to exit.
  • You'll need to install the Visual Studio runtime for some Newman dependencies to be installed. The quickest way to do this is to install Visual Studio Express – http://go.microsoft.com/?linkid=9816758. To check for any additional requirements for your system, check https://github.com/TooTallNate/node-gyp (Windows).
  • Type "npm install -g newman". It should take a few minutes to install. If all goes well, this is what you should see –
    newman-win-installed
  • Enjoy!