If you use npm install in some subfolder, you need to return to the root of overleaf project to update lock file.
npm install --package-lock-only --ignore-scripts
There was an error while loading. Please reload this page.