Home  >  Article  >  Web Front-end  >  How to check the location of node installation on mac

How to check the location of node installation on mac

WBOY
WBOYOriginal
2022-01-20 16:21:3910188browse

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".

How to check the location of node installation on mac

The operating environment of this article: macOS10.15 system, nodejs version 12.19.0, MacBook Air 2019 computer.

How to check the location of node installation on mac

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:

How to check the location of node installation on mac

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!

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