简体   繁体   English

使用Carton从minicpan安装模块

[英]Install modules from minicpan with Carton

I've had success getting cpanm to install from a minicpan mirror with cpanm --mirror ~/.minicpan --mirror-only Module::Name 我已成功通过cpanm --mirror ~/.minicpan --mirror-only Module::Name从minicpan镜像安装cpanm

But I can't figure out how to do the same with Carton. 但我无法弄清楚如何对Carton做同样的事情。

I'd like to be able to just carton install when I'm offline / on a plane and tell it to use my minicpan mirror. 我希望能够在我离线/在飞机上进行carton install并告诉它使用我的minicpan镜像。

I've tried exporting like so export PERL_CPANM_OPT="--mirror ~/.minicpan --mirror-only" with no luck. 我尝试过这样的export PERL_CPANM_OPT="--mirror ~/.minicpan --mirror-only"没有运气。

Any advice appreciated. 任何建议表示赞赏

来自miyagawa的答案: PERL_CARTON_MIRROR=/home/user/minicpan

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM