---
title: 使用lein命令时报“Could not transfer artifact”问题的解决方法
description: "使用lein命令时报错Could not transfer artifact。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/testguide/tstg/kunpengbdsysb_11_0009.html
sourcePath: /source/zh/kunpengbds/testguide/tstg/kunpengbdsysb_11_0009.html
indexId: 5a6d93d474839527e5eb123243a9b40bd6b484b3becc40af3a5ed7d98b7dced563
---
# 使用lein命令时报“Could not transfer artifact”问题的解决方法

#### 问题现象

使用lein命令时报错Could not transfer artifact。


#### 处理步骤

第一次在环境中使用lein命令需要依赖外网的包，需要确保编译前能连通外网，否则需要配置代理，如下所示。

```
export HTTP_PROXY="http://Username:Password@Host:Port"
export HTTPS_PROXY="http://Username:Password@Host:Port"
```
