Check versions in package json against actual node_modules
问题 Imagine the situation: We have a project with node_modules gitignored. While fixing a task developer1 updated package.json to newer version of some module, e.g. "dependencies": { "async": "^1.5.2", // was 1.5.1 ... Then he runned npm install locally to get updated module, performed tests, finished task and pushed changes on the server. Developer2 pulled changes from server and get app broken because still having previous version of async locally (1.5.1). And developer2 can waste a huge amount