node.js - Check versions in package json against actual node_modules -


imagine situation:

we have project node_modules gitignored. while fixing task developer1 updated package.json newer version of module, e.g.

"dependencies": {   "async": "^1.5.2", // 1.5.1   ... 

then runned npm install locally updated module, performed tests, finished task , pushed changes on server.

developer2 pulled changes server , app broken because still having previous version of async locally (1.5.1). , developer2 can waste huge amount of time finding what's goes wrong. until npm i.

can suggest npm package or ready-to-use hook can check versions in package.json against actual versions of node_modules ?

it helpful!

ps: i'm aware of https://www.npmjs.com/package/npm-check not need.

at current day job had problem. fixed creating easy script pulled new source , after directly executes npm update.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -