npm does not support Node.js v10.19.0

The simplest is to update to Node.js v12:

curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

you could update to newer versions like Node.js, is described here: https://github.com/nodesource/distributions#readme however accourding to a comment on github, you should not jump to the newest version, since it might lead to breaking changes.

This answer is based on https://askubuntu.com/a/548776/676490