Skip to content

Commit

Permalink
Patch node installation for M1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmelamed committed Jan 11, 2022
1 parent e545cc2 commit be2b958
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 @@ -756,7 +756,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 be2b958

Please # to comment.