Search code examples
node.jsgithooksnpm-shrinkwrappackage-lock.json

How check consistency npm-shrinkwrap.json and package.json


Sometimes my team members forgot to update npm-shrinkwrap.json after update package.json. I know this package from uber, but it can not be used with npm v3. So now it is not solution.

Do have I possibility to auto check consistency for npm-shrinkwrap.json and package.json? I want to do this in git-hook or/and continuous.


Solution

  • Update from 24 jun 2017 The modern answer is to use npm 5 with package-lock.json