The team’s setup check is moving from Python to JavaScript. Before you port it, you need a program that runs JavaScript from your terminal. You’ll install Node.js and verify which version runs, much as you check a Python installation.
Choose a JavaScript Runtime
JavaScript runs in every browser and in standalone runtimes, programs that execute the language outside a browser, including Node, Deno, and Bun. This course uses Node because it’s the most common way to run JavaScript like a Python script.
Node supplies the node command, the counterpart to python. Its name identifies the runtime rather than the language because several programs run JavaScript. Each runtime adds its own facilities around the language. Node provides access to your terminal and file system, which the setup check needs.
Install Node 26
Use fnm, a version manager like pyenv, to install the course’s version, Node 26. fnm supports Windows, Linux, and macOS and lets you switch versions later. Another popular manager, nvm, supports macOS and Linux. Follow the fnm steps for your system:
The first version fnm installs becomes the default automatically. You can instead choose Node 26 from the official download page, using its installer where available. Avoid an old Node package from your operating system’s repositories. Installing Node yourself doesn’t replace the system Python that operating system tools may depend on.
Check the Command
Open a fresh terminal and verify the version that the setup check will report:
Your minor and patch numbers may differ. The major number should be 26. If you installed through fnm and another major version runs, use fnm use 26 in the current shell. With --use-on-cd enabled, entering a project with a .node-version or .nvmrc file can select that project’s version instead of your default.
For fnm installations, use fnm default to display the default version for new terminals. If node isn’t found, check that fnm’s shell setup loaded. On Windows, verify the profile’s fnm env line.
If you used the official installer and node isn’t found, rerun the Node 26 installer and complete its installation. Close and reopen your terminal afterward. If an older version still runs, locate it with where.exe node in PowerShell or command -v node on macOS or Linux. Remove that older installation or move the Node 26 installation folder ahead of it on PATH.
Restart an already running editor completely before opening another terminal tab inside it, whichever installation method you chose.
node --version gives the same result. Unlike Python’s uppercase -V, Node’s short version flag is lowercase -v. The installation also includes npm, a command for installing JavaScript packages. You won’t need packages yet. Use your existing code editor for the script, or Visual Studio Code if you need one.
In the next lesson, Trying JavaScript in the REPL, you’ll open Node’s interactive prompt with node, try expressions, and leave it again. You’ll also use node -p for a one-off expression, like python -c with the result printed for you.