Open ykrank opened 3 weeks ago
I got this error too. Here is my resolve: Enter to docker container (If you use docker to run npm), change python pip repository to thirdparty mirror. BUT, I want developer can fix this bug or add config for to change python mirror in docker container. The reason most happened because the network error. In China consider the gfw , you should change pip repository mirror can fix this problem.
docker exec -it YOUR_CONTAINER_ID /bin/bash
mkdir ~/.pip/
touch ~/.pip/pip.conf
cat > ~/.pip/pip.conf <<EOF
> [global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install] trusted-host=mirrors.aliyun.com
EOF
4. retry for install
When restart NPM, will always recall
pip install certbot-dns-aliyun~=0.38.1
, but this command always timeout fail for several times. After 5 or more times retry, this will be success. I think the reason for this phenomenon is that the current network speed is too slow and the pip timeout time is too short (15seconds). So we need to add an environment variable to change the pip timeout time and add a proxy for pip.