How is the dependent version of each dependency package fixed in package-lock.json?

now there is an older project, and the dependent version of the dependency package in package-lock.json is fixed:

clipboard.png

but once npm I , all the dependent versions circled in the red box above are changed to ^ x.x.x or ~ x.x.x . How can these dependent versions be fixed?

May.21,2022

npm 5.3 can

I have the same problem. The npm6.9 version npm I will be changed to ^ x.x.x if you find the reason, please reply


. Is it a npm problem or something else? I use 4.2.0 for a dependent package version, but reinstall it after deleting node_modules. The version of the dependency package in package-lock becomes the latest 4.3.2. Is there any way to fix this installation version? Because there are some changes in the new version that are not needed at the moment, there are problems with the project running.

Menu