Home > Article > Web Front-end > How to check the location of node installation on mac
In mac, you can use the which command to check the location of node installation. The function of this command is to find files. The output result is the absolute path of the specified file, and the syntax is "which node".
The operating environment of this article: macOS10.15 system, nodejs version 12.19.0, MacBook Air 2019 computer.
which command is used to find files.
which command will search for files that meet the conditions in the directory set by the environment variable $PATH.
Syntax
which node
The example is as follows:
The output result is the location of the node installation.
Recommended learning: "nodejs video tutorial"
The above is the detailed content of How to check the location of node installation on mac. For more information, please follow other related articles on the PHP Chinese website!