Re:Gitter is open source
by jononor on Tuesday July 04, 2017 @02:00PM
(#14697311)
Caching node_modules is fine, but not in the mainline branches of your source control. Let your CI system put it somewhere, after it passed tests. Tarball, a dedicated git repo/branch, Docker image or whatever else is practical.
[ Parent
| on HN ]
To control versions of dependencies pull in, narrow your specifiers in package.json, verify that the deps use semver sanely, and consider a lockfile.
https://docs.npmjs.com/files/package-locks