Today we will be focusing on how to keep our local node_modules up to date whenever the package.json is modified when we pull from remote or switch between branches.

Photo by Thomas Kelley on Unsplash

As JS developer, when we work on projects we frequently need to run npm install command whenever we pull or checkout to a different git branch where package.json is modified.

In majority of the cases, the dependencies won’t cause any issues, but if there any breaking change introduced by the…

--

--