Protractor is a fairly easy to set up. All you need is to have node.js installed on your system. If you don’t have node.js installed in your system, you can refer to these links for installing in your system – which might be a Mac,Windows or a Linux machine-
- Installing Node.js and npm on Windows machine
- Installing Node.js on Ubuntu (Linux).
- Installing Node.js on Mac using Homebrew
Once you have node.js installed, you can easily download protractor via the node package manager (npm). For a Macintosh system, you can follow these steps
npm install -g protractor
Installing npm with a -g
command will install the npm globally. Once you have run the protractor from npm, you can check if the protactor actually got installed by running
protractor --version
which will output something like this image below