Installing Node.js
You can test if you have Node.js installed by opening a terminal and running node -v. If you get an error like command not found, you do not have Node.js installed.
Although Node.js offers installers for Windows and Mac, these aren’t recommended.
Instead, install Node via Fast Node Manager (fnm).
On macOS, open a Terminal and copy and paste this line:
curl -fsSL https://fnm.vercel.app/install | bashAssuming it works OK, close the Terminal window, open a new one and run:
fnm install --latestTo test that Node.js is working, run: node -v
Windows
Section titled “Windows”On Windows, open a terminal and copy and paste this line:
winget install Schniz.fnmIf you get a ‘command not found’ error, you may need to first install Winget from the Microsoft store
Close the terminal window and open a new one, and run:
fnm install --latestTo test that Node.js is working, run: node -v