Home  >  Article  >  Operation and Maintenance  >  How to query the node version number in Linux

How to query the node version number in Linux

青灯夜游
青灯夜游Original
2022-03-22 18:44:516454browse

How to query the node version number in Linux: 1. Open the terminal and execute the "node --version" command. You can view the version number information in the output list; 2. Open the terminal and execute the "node -v" command. , the node version number information can be viewed in the output results.

How to query the node version number in Linux

The operating environment of this tutorial: linux5.9.8 system, nodejs version 12.18.3, DELL G3 computer.

linux query node version number

Method 1: Use node --version

You only need to execute the following command in the terminal to output the node version number

node --version

Execute npm --versionYou can also view the version number of the npm tool

How to query the node version number in Linux

Method 2: Use node -v

Just execute the following command in the terminal to output node Version number

node -v

Executenpm -vYou can also check the version number of the npm tool

How to query the node version number in Linux

Related recommendations:《Linux Video tutorial

The above is the detailed content of How to query the node version number in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn