我要评分
获取效率
正确性
完整性
易理解

Error Message "Could not transfer artifact" Reported When Running the lein Command

Symptom

The error message "Could not transfer artifact" is reported when running the lein command.

Procedure

Packages will be downloaded from the Internet if you run the lein command in the environment for the first time. Therefore, make sure that the Internet can be connected before compilation. Otherwise, you need to configure a proxy as follows.

1
2
export http_proxy="http://Username:Password@Host:Port"
export https_proxy="http://Username:Password@Host:Port"