---
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"
---

# 使用lein命令时报“Could not transfer artifact”问题的解决方法

#### 问题现象

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


#### 处理步骤

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

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