简体   繁体   中英

Offline private NPM repository

I read about building private NPM mirrors/repositories, but didn't quite understand.

My goal is to make a repository that currently up to date, that contains all NPM packages available at the NPM website (The free packages) that I need. After downloading all packages I need to move it to a private network which is not connected to the internet. And set up a repository that will accept NPM requests in that private network.

every month I will update the packages I have outside the private network, and enter it to our private network again.

I never done anything like this before, Can anyone like guide me through it or Does anyone has a reading source that will explain step by step?

Good day !

This appears to be one way of doing what you want:

https://web.archive.org/web/20160310020204/https://www.clock.co.uk/blog/how-to-create-a-private-npmjs-repository

(I've updated the link to a Wayback machine link since it was taken offline by original host.)

UPDATE: There seem to be a few ways to do this now.

For example:

  1. https://codebox.sh/ - free private npm registry
  2. http://blog.runkit.com/2016/09/13/tonic-is-now-runkit-a-part-of-stripe.html : "We started by buidling module-fs, a virtual filesystem capable of representing the entire state of npm at any particular microsecond. With module-fs we could make every version of the over 300,000 packages on npm available instantly. With truly immediate and frictionless access to any package, you could begin to think of npm as the global standard library, as essential to development tomorrow as built-in libraries are today."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM