javascript - How to download the whole NPM repository for full offline development joy? - Stack Overflow

Recently I was on holiday with limited internet connectivity. I was developing an application in node.j

Recently I was on holiday with limited internet connectivity. I was developing an application in node.js when I suddenly needed some NPM packages. This put a severe halt in the development and I was forced to wait until I could go online to download said packages and continue development.

Is it possible to mirror the whole npm registry locally on my puter? How to do that?

It should be possible seeing as online mirrors of the main registry exists. Where do they gather all packages from?

Recently I was on holiday with limited internet connectivity. I was developing an application in node.js when I suddenly needed some NPM packages. This put a severe halt in the development and I was forced to wait until I could go online to download said packages and continue development.

Is it possible to mirror the whole npm registry locally on my puter? How to do that?

It should be possible seeing as online mirrors of the main registry exists. Where do they gather all packages from?

Share Improve this question asked Apr 4, 2015 at 13:36 subZerosubZero 5,1767 gold badges33 silver badges53 bronze badges 2
  • 1 This should help you: github./npm/npm-registry-couchapp#replicating-the-registry. – Aadit M Shah Commented Apr 4, 2015 at 13:40
  • See clock.co.uk/blog/how-to-create-a-private-npmjs-repository – subZero Commented Apr 4, 2015 at 15:08
Add a ment  | 

1 Answer 1

Reset to default 2

This is what npm-offline could do for you. npm-offline could cache modules, you would just need to create a script that ensures you have the modules that you want cached.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744745638a4591277.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信