Skip to content

Commit

Permalink
Merge pull request #180 from techtonik/patch-1
Browse files Browse the repository at this point in the history
Do not fail if nodejs link can't be created on Windows
  • Loading branch information
ekalinin authored Jan 20, 2017
2 parents 33135c9 + 22ea01b commit 4b5d2aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,10 @@ def install_activate(env_dir, opt):

if not os.path.exists(shim_nodejs):
if is_WIN:
callit(['mklink', shim_nodejs, 'node.exe'], True, True)
try:
callit(['mklink', shim_nodejs, 'node.exe'], True, True)
except OSError:
logger.error('Error: Failed to create nodejs.exe link')
else:
os.symlink("node", shim_nodejs)

Expand Down

0 comments on commit 4b5d2aa

Please sign in to comment.