# Detect when node\_modules are out of sync

DevFeed: [Detect when node\_modules are out of sync](<https://devfeed.tech/articles/detect-when-node-modules-are-out-of-sync-21371.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2020/09/detect-node_modules-out-of-sync/>)

Published: 2020-09-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Node.js](<https://devfeed.tech/topics/node-js.md>), [Git](<https://devfeed.tech/topics/git.md>), [Script](<https://devfeed.tech/topics/script.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [webstorm](<https://devfeed.tech/topics/webstorm.md>)

Tags: [git](<https://devfeed.tech/tags/git.md>), [git-hook](<https://devfeed.tech/tags/git-hook.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [tooling](<https://devfeed.tech/tags/tooling.md>), [vscode](<https://devfeed.tech/tags/vscode.md>), [webstorm](<https://devfeed.tech/tags/webstorm.md>)

## AI overview

A tutorial on detecting when node_modules are out of sync after switching Git branches or commits. It explains a Node.js script that checks changed files for package.json and describes installing the script as a Git checkout hook.

## Source excerpt

Lorem ipsum dolor sit amet