This worked for me on Ubuntu (latest version dated Oct/2020)
I had to first get code from the bash source:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
This got the latest version of node which updated my libraries and got rid of the 'semver' error.