Porting from Sinopia to Nexus3

586 Views Asked by At

Does anybody have a process for porting from Sinopia to Nexus 3? We could always proxy Sinopia in Nexus and let it continue to run for a year, but I'd rather import and shut Sinopia down.

Thanks in advance,

Dave B.

1

There are 1 best solutions below

6
On

Generate List of sinopia tgz files

find $SINOPIA_HOME/storage/ -name "*.tgz" > listoftgzs.txt

Iterate list and publish to Nexus 3

while read p; do
  echo $p
  npm publish $p --registry https://mynexus.hostname.com/repository/npm-internal/ 
done < listoftgzs.txt

I have some failing to publish, which I think has more to do with the module than the method here.