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