CS-WIKI101
Loading...
Searching...
No Matches
Node.js via Binary distribution

Step 1. Download Node.js

  1. Go to the Node.js release page and download the installer for your operating system.

  1. Choose version 18.x.x (LTS) and download for your operating system (For this course, we will be using version 18.x.x (LTS) if you want to use different version, you can choose the version you want).

  1. In index page, choose node-v18.x.x-darwin-arm64.tar.gz or any version that include darwin-arm64 in the file name and extension .tar.gz.

Step 2. Install Node.js

  1. Open Terminal: Press Command + Spacebar to open Spotlight Search, type Terminal, and press Enter to open the Terminal application.

    NOTE For more information please see how to open Terminal in macOS

  2. Once you have downloaded, open the Terminal application and navigate to the directory where you downloaded binary file.

    cd ~/Downloads
  3. Extract the installer by running the following command:

    sudo tar -C /usr/local --strip-components 1 -xzf node-vx.x.x-darwin-arm64.tar

    Replace vx.x.x with the version number you downloaded (in this case, v18.19.0).

    sudo tar -C /usr/local --strip-components 1 -xzf node-v18.19.0-darwin-arm64.tar
  4. Verify Installation: After the installation is complete, you can verify that Node.js is correctly installed by running the following command:

    node --version

    This will display the Node.js version number if the installation was successful.

    $ node --version
    + v18.19.0

Need assistance? Check out my discussion board or review the GitHub status page.

© 2023 AppleBoiy • Code of Conduct • [MIT License](LICENSE)

Back to Top