Installing NPM

To install Node Package Manager (npm), we will be using Node Version Manager (nvm).

Navigate to the NVM repository and follow the instructions for the Install & Upate Script section.

Note that their examples pipe to bash. If you are using another shell, such as zsh, you will need to change this to match your desired shell.

After running their install script, you should be able to close and re-open your terminal and verify that it was installed correctly by checking the version.

terminal

nvm --version
0.39.1

Next, we will install npm through nvm.

terminal

nvm install node

Now we can verify that npm is installed.

terminal

npm --version
8.3.0

In the next section we will build a basic skeleton of a project for using Fluent DOM.