官术网_书友最值得收藏!

Installing Node.js on macOS

Next, let's install Node.js and NPM using the following steps. You can find the necessary installation packages by navigating to https://nodejs.org:

Note that Node.js typically comes in two flavors: the Long-Term Support ( LTS) version, which is suitable for most users, and the Current version, which provides the most cutting-edge features and enhancements.
  1. First, we need to download and install Node.js. The website automatically detects your browser and platform and suggests the appropriate packages for you to download. For macOS, you are going to see the Download for macOS (x64) label and two big download buttons, as shown in the following screenshot:
  1. Choose any version and click the corresponding button to get the relevant installer package. The installation process for the macOS platform is pretty straightforward. Keep all the default settings; proceed with the wizard's steps until the setup is over.
  2. In the Terminal application, run the following commands to verify that you have Node.js and NPM installed on your machine:
      node -v
npm -v
  1. The system's output should be similar to the following, though their versions may vary:
      v12.13.0
6.12.1

Congratulations! You've successfully installed Node.js on your macOS.

主站蜘蛛池模板: 梁山县| 蒙山县| 凤翔县| 西安市| 泾源县| 固原市| 枝江市| 洮南市| 沽源县| 青河县| 聂荣县| 合肥市| 阿坝| 化州市| 孟津县| 民乐县| 额敏县| 安陆市| 元阳县| 霍林郭勒市| 安吉县| 宝兴县| 新疆| 克拉玛依市| 衡阳市| 高尔夫| 醴陵市| 甘孜县| 鲁山县| 五华县| 武夷山市| 汉寿县| 青川县| 巍山| 丽江市| 罗城| 徐水县| 铜川市| 汶川县| 奇台县| 斗六市|