Thursday 7 December 2017

Npm 5.5 shrinkwrap vs packaging node_modules to production

First, I know this question has been asked many many times before, but all those questions goes back to 2014, 2015 or before.My question, with npm 5.x and specifically 5.5.x, where it enhances its algorithm in getting dependencies, isn't depending on npm_shrinkwrap is enough to give you an exact node_modules tree in production, to what you have in dev/test?At my work , we are debating between packaging node_modules in the production push, or depend on npm install --production.We are using the latest npm version: 5.5.1

Submitted December 07, 2017 at 11:15AM by gkarwchan

No comments:

Post a Comment