Many of the dependent versions in the project are older, but no matter how I update them, the versions in the project are always the same and the heads are bigger
View expired dependencies
npm update react
reference resources: https://docs.npmjs.com/cli/ou...https :// docs.npmjs.com/cli/up ...
Maybe the configuration cache configuration file is not updated. For example, if you update the package with yarn, it will be available locally yarn.lock The same is true of NPM management
Is there a package - lock . JSON this file, which is used to lock the version! If you have this file in your project, no matter how you update it, the final version you download depends on package - lock . Version in JSON! Delete this file and then NPM install. This is your package . The version specified by JSON!