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).
macOS
On macOS, open a Terminal and copy and paste this line:
Assuming it works OK, close the Terminal window, open a new one and run:
To test that Node.js is working, run: node -v
Windows
On Windows, open a terminal and copy and paste this line:
If 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:
To test that Node.js is working, run: node -v