Skip to content

Commit

Permalink
Merge pull request #299 from lyft/m1-arm64-patch
Browse files Browse the repository at this point in the history
Patch node installation for M1
  • Loading branch information
ekalinin authored Apr 21, 2022
2 parents 11b7134 + be2b958 commit 00403d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,12 @@ def install_node_wrapped(env_dir, src_dir, args):

# get src if not downloaded yet
if not os.path.exists(node_src_dir):
download_node_src(node_url, src_dir, args)
try:
download_node_src(node_url, src_dir, args)
except urllib2.HTTPError:
if "arm64" in node_url:
# if arm64 not found, try x64
download_node_src(node_url.replace('arm64', 'x64'), src_dir, args)

logger.info('.', extra=dict(continued=True))

Expand Down

0 comments on commit 00403d9

Please # to comment.