If you want to use cpanfile.snapshot to resolve CPAN modules, then try:
curl -sSL https://git.io/cpm | perl - install --resolver snapshot
- note1: this is the default behavior if there is cpanfile.snapshot in the current directory
- note2: to load cpanfile.snpahost, you should have Carton::Snapshot. So if you don't have it, you should install it first. cf perl-carton/carton#223
On the other hand, if you want to ignore cpanfile.snapshot, and want to resolve CPAN modules by cpanmetadb, then try:
curl -sSL https://git.io/cpm | perl - install --resolver metadb