We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78fa46b commit fa90690Copy full SHA for fa90690
Framework/nodejs_appium_installer.py
@@ -5,8 +5,8 @@
5
import tarfile
6
import zipfile
7
from pathlib import Path
8
-from urllib.request import urlretrieve
9
import json
+import requests
10
11
# This should always be the latest LTS version
12
NODE_VERSION = "22.20.0"
@@ -97,7 +97,10 @@ def install_nodejs():
97
archive_path = node_dir / archive_name
98
99
print("Downloading Node.js...")
100
- urlretrieve(url, archive_path)
+ 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)
104
105
try:
106
# Extract Node.js
0 commit comments