How to query the node version number in Linux

青灯夜游
Release: 2022-03-22 18:45:42
Original
6471 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template