Bird
0
0

Which terminal command displays the current version of Node.js installed on your machine?

easy📝 Syntax Q3 of 15
Cypress - Basics and Setup
Which terminal command displays the current version of Node.js installed on your machine?
Anode --version
Bnpm version
Cnode version
Dnpm -v
Step-by-Step Solution
Solution:
  1. Step 1: Recall Node.js version commands

    The standard command to check Node.js version is node --version or node -v.
  2. Step 2: Differentiate from npm commands

    npm -v shows npm version, not Node.js.
  3. Final Answer:

    node --version -> Option A
  4. Quick Check:

    Use node --version for Node.js version [OK]
Quick Trick: Use node --version to check Node.js version [OK]
Common Mistakes:
  • Using npm -v to check Node.js version
  • Typing node version instead of node --version
  • Confusing npm and node commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes