To Reproduce

After bump versions in the repository, doing npm install --package-lock-only.

Successful

npm i npm@7.20.2 -g && npm test
npm i npm@8 -g && npm test

Failed

npm i npm@9 -g && npm test