npm Verified current stable Not installed? Package Management

Npm / Check Node Npm Versions

Check Node Npm Versions

Use 'npm doctor versions' to verify installed Node and NPM versions against the latest available.

$
Terminal
npm doctor versions

When To Use

Assessing installed Node and NPM versions for compatibility and updates.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
npm version: 6.14.8
node version: v14.15.0
Latest npm version: 6.14.15
Latest node version: v14.17.0

Your npm and node versions are outdated.

Command Breakdown

What each part is doing

npm
Base Command
The executable that performs this operation. Here it runs Npm before the shell applies any redirect operators.

How To Run

Execution path

  1. Step 1

    Open your terminal.

  2. Step 2

    Run the command: npm doctor versions.

  3. Step 3

    Review the output for version discrepancies.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.