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

npm -v

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

Now check the new version: npm –v

Node:

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

Protractor:

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

1 comment:

Cypress: How to handle browser-based authentication pop up dialog in Cypress

Five years ago I have written a blog on how to handle browser-based authentication for selenium webdriver.   Now it is for cypress. Cypress...