You can restore your package.json file to its previous state (I hope you still have this, or at least remember what you changed), and then do another npm update .
[UPDATE]
However, in general, this method does not guarantee that your dependency tree will be restored to its previous state (since package.json files in the dependency tree often freely indicate the version of the dependency).
If you need to make sure that the package dependency tree can be accurately restored, you should use something like npm shrinkwrap to โblockโ the version of the dependencies (before publishing the package).
source share