Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经成功地让 cpanm 从一个 minicpan 镜像安装cpanm --mirror ~/.minicpan --mirror-only Module::Name
cpanm --mirror ~/.minicpan --mirror-only Module::Name
但我不知道如何对 Carton 做同样的事情。
我希望能够carton install在我离线/在飞机上时告诉它使用我的 minicpan 镜子。
carton install
我试过这样出口export PERL_CPANM_OPT="--mirror ~/.minicpan --mirror-only",但没有运气。
export PERL_CPANM_OPT="--mirror ~/.minicpan --mirror-only"
任何建议表示赞赏。
The answer from miyagawa: PERL_CARTON_MIRROR=/home/user/minicpan
PERL_CARTON_MIRROR=/home/user/minicpan