3 ms·
There's nothing stopping you from running `npm` or `yarn` offline and committing the cache. In fact, both of these package managers have had direct support for
by lhnz 5y ago
There's nothing stopping you from running `npm` or `yarn` offline and committing the cache.
In fact, both of these package managers have had direct support for this workflow since 2016 (https://docs.npmjs.com/cli/v7/using-npm/config#offline https://docs.npmjs.com/cli/v7/using-npm/config#offline) and 2017 (https://classic.yarnpkg.com/blog/2016/11/24/offline-mirror/ https://classic.yarnpkg.com/blog/2016/11/24/offline-mirror/) respectively.
- rlkf 5y agoExcept that the format of the npm cache is version-specific. You would probably be better off using https://github.com/heikkipora/registry-sync https://github.com/heikkipora/registry-sync instead.