Monday, August 15, 2016

Protractor: How to check npm, node and protractor current version and install the new update

Sometimes we need to know the current version on npm, node and protractor. Since the community is releasing the latest version continuously, we have to install those updated release frequently.

The following commands are needed to check the version and install the latest one. For this we need to open a command prompt and write the following code command.

npm:

  • Version

image

  • To install the latest version: npm install npm@latest –g

image

Now check the new version: npm –v

image

Node:

  • Version: node –v

image

  • To install the latest version:
    • Just go to Node JS site and install the latest version.

Protractor:

  • Version: npm protractor –version

image

image