A
A
Andrey Strelkov2018-09-14 16:22:10
Node.js
Andrey Strelkov, 2018-09-14 16:22:10

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

2 answer(s)
S
Snewer, 2018-09-14
@Snewer

Describe dependencies in package.json manually, and then transfer downloaded dependencies.

A
Alexey, 2018-09-14
@Softovick

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 question

Ask a Question

731 491 924 answers to any question