Skip to content

Commit fa90690

Browse files
committed
Use requests to download nodejs and also set verify=False
1 parent 78fa46b commit fa90690

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Framework/nodejs_appium_installer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import tarfile
66
import zipfile
77
from pathlib import Path
8-
from urllib.request import urlretrieve
98
import json
9+
import requests
1010

1111
# This should always be the latest LTS version
1212
NODE_VERSION = "22.20.0"
@@ -97,7 +97,10 @@ def install_nodejs():
9797
archive_path = node_dir / archive_name
9898

9999
print("Downloading Node.js...")
100-
urlretrieve(url, archive_path)
100+
response = requests.get(url, verify=False)
101+
response.raise_for_status()
102+
with open(archive_path, 'wb') as out_file:
103+
out_file.write(response.content)
101104

102105
try:
103106
# Extract Node.js

0 commit comments

Comments
 (0)