Prerequisites
The following will be assumed throughout the site.
*nix command line
Similar things will likely work in cmd or PowerShell on Windows, but all of the examples will be given in Bash. If you're using Windows, we recommend installing Git Bash via Git for Windows.
If you're not comfortable with using a command line interface (CLI) like npm
or git
, check out a tutorial, e.g.:
- An Introduction to the Linux Terminal (Digital Ocean)
- The Linux command line for beginners (Ubuntu)
Node.js v18+ and npm v8+
This guide assumes you have Node.js and npm installed already. With Node.js v16 reaching end-of-life (as of 2023-09-11), this guide is focusing explicitly on v18+. Given the default versions of npm that shipped with corresponding Node.js versions:
Node.js | npm | Comments |
---|---|---|
18.0.0 | 8.6.0 | N/A |
18.12.0 | 8.19.2 | first "Hydrogen" LTS release |
18.14.0 | 9.3.1 | first release with npm v9 |
18.19.0 | 10.2.3 | first release with npm v10 |
20.0.0 | 9.6.4 | N/A |
20.7.0 | 10.1.0 | first release with npm v10 |
20.9.0 | 10.1.0 | first "Iron" LTS release |
we'll cover npm v8+; npm v7 and below won't be included (except for occasional historical context). You can check your
current version with the --version
/-v
flag to the npm
command:
$ npm --version
9.6.7