I want to lock all versions in package.json, but when I change a version from "^X.Y.Z" to "X.Y.Z" and install packages again, some features break because of older versions. I want to retrieve all versions of installed packages with ^X.Y.X.
Is there a way to update the package.json file for the installed node_modules.
There is a SO thread but can't find a helpful answer.
Update
I'm just currious if their is a utility library to do that labor work for me because in case of huge dependencies list I have to do npm view version for each pkg and then update the obtained version in package.json.