Bounties /Bookmark

What is the preferred method for upgrading Node.js on Mac OS?

I’d like to learn this the “old-fashioned” way without use of Brew or NVM. What is best practice in 2022 for upgrading Node.js?

@thrithedawgsudo n latest
@buildinteractiveTo clarify: this is assuming I have already installed the following, correct? npm install -g n
@lashieUsing N: An npm-based node version manager.  Check the Node.js version in your console. If n package is not already installed, install it using npm.  sudo npm install -g n  (To install the stable node release, use this command.) sudo n stable  (To install/update the most recent node release, use this command.) Sudo n latest Install/update the most recent LTS node release with this command. sudo n lts done now! Checking your Node.js version once more will allow you to confirm the update was successful.
@buildinteractiveThank you. How does N compare to NVM and is it possible to not use either?
Sign in
Forgot password?
Sign in with TwitchSign in with Github