When migrating to @npmjs v7 I noticed that it will
include all existing dependencies in the node_modules folder, which lead to bugs
because suddenly packages were using a different top-level dependency.
2 replies
So the clean way to migrate that worked was:
rm -rf node_modules package-lock.json npm i
Another issue I ran into: inclusion of peerDependencies by default. There is a
workaround, but it seems more tricky than just "--legacy-peer-deps":
https://github.com/aws/aws-sdk-js-v3/issues/2051