AvaLovelace commited on
Commit
1e2bbfc
·
verified ·
1 Parent(s): 2f33160

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def setup():
41
  print("Updating Node...")
42
  version = "20"
43
  subprocess.run("curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash", shell=True, check=True)
44
- subprocess.run(f"\. $HOME/.nvm/nvm.sh && nvm install {version} && nvm use {version}", shell=True, check=True)
45
  print(f"Node.js updated to version: {version}")
46
 
47
 
 
41
  print("Updating Node...")
42
  version = "20"
43
  subprocess.run("curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash", shell=True, check=True)
44
+ subprocess.run(f"\. $HOME/.nvm/nvm.sh && nvm install {version} && nvm use {version} && ln -sf \"$(which node)\" /usr/bin/node", shell=True, check=True)
45
  print(f"Node.js updated to version: {version}")
46
 
47