Skip to content

Commit 06fe123

Browse files
committed
Disable SSL check after nodejs has successfully installed
1 parent 30847f6 commit 06fe123

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Framework/nodejs_appium_installer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ def install_nodejs():
112112
if archive_path.exists():
113113
archive_path.unlink()
114114

115+
# Disable SSL verification for npm for environments that have proxies
116+
print("Disabling SSL certificate verification for proxied environments for npm")
117+
npm_path = get_npm_path()
118+
subprocess.run([str(npm_path), "config", "set", "strict-ssl", "false"], check=False)
119+
115120

116121
def get_npm_path():
117122
"""Get npm binary path."""
@@ -226,11 +231,6 @@ def check_installations():
226231
except: # noqa: E722
227232
pass
228233

229-
# Disable SSL verification for npm for environments that have proxies
230-
subprocess.run(
231-
[str(npm_path), "config", "set", "strict-ssl", "false"], check=False
232-
)
233-
234234
# Check drivers
235235
required_drivers = get_required_drivers()
236236
installed_drivers = check_appium_drivers() if appium_installed else []

0 commit comments

Comments
 (0)