what commands we will follow in command prompt For checking the Node JS and npm versions.Back to Questions
node -edx,npm - edx
node -v, npm -v
node insl, npm insl
With node -v command we can get current version of node js and npm -v will show current version of node package manager in our local machine.