Vik David
Vik David

Reputation: 3750

How to migrate a proxy NPM repository in Nexus 3?

I have a Nexus 3 installation with these NPM repos defined:

I would like to be able to populate the npm proxy repository on an Internet connected machine, and then migrate it to a Nexus Server running on a disconnected machine. Nexus 3 has a Task to backup/restore the entire underlying Orient database, but I can't find a way to do it for a specific repository. My goal is to have a npm proxy repo that's populated with NPM packages I need, in an offline environment.

Upvotes: 3

Views: 1588

Answers (2)

Raz Luvaton
Raz Luvaton

Reputation: 3790

You can use this npm tool.

Using this tool download the artifacts from the repositories and upload them in the offline server

Disclaimer, I’m the author of this package

Upvotes: 0

Manfred Moser
Manfred Moser

Reputation: 29912

As far as I know there is no way to do this with any built in mechanism. Your best bet is to publish all packages you need to a hosted repository or alternatively just have the proxy repo and server connected to the internet during provisioning but take it offline afterwards.

Upvotes: 3

Related Questions