npm ERR! semver.simplifyRange is not a function npm ERR! semver.simplifyRange is not a function express express

npm ERR! semver.simplifyRange is not a function


My solution was to install older version of semver and update npm itself to version 7.7.0.I used the commands:

sudo npm install -g semver@7.2.0

and then

sudo npm install -g npm@7.7.0

After it worked


After another another round of updates from the package manager, I ran into more problems (See this question).

From the question linked above I found installing node directly from the nodejs website to be a more permanent and robust solution.