How to install nodejs on mac: 1. Download the pkg installation package from the official download website and click to install directly; 2. Use the "brew install node" command to install it.
The operating environment of this article: macOS10.15 system, nodejs version 10.16.2, MacBook Air 2019 computer.
How to install nodejs on mac?
Installation method on Mac OS:
You can use the following two methods to install nodejs on Mac Install node on the OS:
1. Download the pkg installation package from the official download website and click to install directly.
Official address:
https://nodejs.org/en/download/
2. Use brew command to install:
brew install node
[Recommended learning: nodejs video tutorial]
The above is the detailed content of How to install nodejs on mac. For more information, please follow other related articles on the PHP Chinese website!