Fork me on GitHub

Project Notes

#277 Node.js macOS

Installing and maintaining Node.js on macOS

Notes

Updated installation - macOS 14.2 on Apple Silicon

Using Homebrew to install and maintain node on MacOS:

$ brew install node
$ node --version
v22.5.1
$ npm install -g n
$ n --version
v9.2.3
$ npm install -g npm
$ npm --version
10.8.2

Original Installation - macOS High Sierra on Intel

I used homebrew to install and maintain node on MacOS:

$ brew install node
$ node --version
v11.15.0

Node Version Manager

I used to use nvm but since switched to n

$ npm install -g n
$ n --version
4.1.0

To install or update nvm, you can use the install script using cURL:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

Updating Node

To install the latest available..

$ sudo n latest
$ n ls
    ...
    11.14.0
    11.15.0
    12.0.0
    12.1.0
    12.2.0
    12.3.0
    12.3.1
    12.4.0
    12.5.0
    12.6.0
    12.7.0
  ο 12.8.0
$ node --version
v12.8.0

Updating NPM

$ npm install -g npm
$ npm --version
6.10.2

Credits and References

About LCK#277 node
Project Source on GitHub Return to the Project Catalog

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.

LittleArduinoProjects LittleModelArt More on my blog