ホーム > Node.js > How to Install Node.js on an M4 Mac 2025 Edition
Node.js

How to Install Node.js on an M4 Mac 2025 Edition

Thank you for your continued support.
This article contains advertisements that help fund our operations.

A summary of how to install Node.js on an M4 Mac.

Error Message

command not found: node

This also serves as a solution for when you encounter the above error.

How to Install Node.js on a Mac

There are various methods, but the easiest way is to use the installer from the official Node.js website.

Node.js

Currently, the homepage has a button to install the latest LTS version, which you can download from there.

node install1

Follow the instructions to complete the installation.

It is recommended to save it in the default path to avoid unnecessary errors in the future.

node install2

How to Verify the Installation

Run the following command in the terminal:

node -v

If the version is displayed as shown below, the installation was successful:

v22.15.0

Is the LTS Version Sufficient?

LTS stands for "Long Term Support," which refers to a version of software that is supported stably over a long period.

In short, it prioritizes stability, resulting in fewer bugs (as newer features in Node.js tend to introduce more bugs).

Therefore, I believe installing the latest LTS version is the safest choice.

By the way, if you ever need to use an older version, you can easily switch versions by installing a version management tool as described in the following article:

How to Switch Node.js Versions

Please Provide Feedback
We would appreciate your feedback on this article. Feel free to leave a comment on any relevant YouTube video or reach out through the contact form. Thank you!