Test your npm & nodeversion by running in the terminal:

npm -v # Should be >=7.20.0
node -v # Should be >=16.7.0

If you versions are up-to-date, then you are all done here!

If npmis not installed, follow these instructions to install it.

If npm version is <7.20.0, update it:

npm install -g npm@latest # or 'sudo npm install -g npm@latest'

If your Node version is <16.7.0, update it:

n lts
n latest # or 'sudo n latest'
n prune