Answer the question
In order to leave comments, you need to log in
How to take an npm server offline?
Good afternoon, the task is this, there is an offline Intranet at work (and does not physically have an Internet connection)
How can, for example, at home create some kind of actual mirror / cache or how to call it the state of the npm repository, after which it is via a USB drive or the like bring to work, and copy to the intranet for later use.
Answer the question
In order to leave comments, you need to log in
Describe dependencies in package.json manually, and then transfer downloaded dependencies.
To make it look exactly like the npm repository - then here is the option https://www.npmjs.com/package/npm-mirror
But all the packages at once, I'm afraid you won't be able to download in any way. Only those that are needed for projects.
Perhaps it's easier to download where there is Internet and just bring the node_modules folder on a USB flash drive.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question