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.


  • Version

npm -v

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

Now check the new version: npm –v


  • Version: node –v
  • To install the latest version:
    • Just go to Node JS site and install the latest version.


  • Version: npm protractor –version
  • To install the latest version:
    • npm install protractor@latest -g

No comments:

Post a Comment