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

How to check the location of node installation on mac

WBOY
Release: 2022-01-20 16:21:39
Original
10251 people have browsed it

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

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!

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