Please try npm cache clean --force and multiple npm i or in general removing the lock file and deleting node_modules.
npm cache clean --force
npm i
https://github.com/npm/npm/issues/21172