Home > Article > Operation and Maintenance > How to query the node version number in Linux
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.
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 --version
You can also view the version number of the npm tool
Method 2: Use node -v
Just execute the following command in the terminal to output node Version number
node -v
Executenpm -v
You can also check the version number of the npm tool
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!