AvaLovelace commited on
Commit
e812854
·
verified ·
1 Parent(s): 38b4f6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -41,9 +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("\. $HOME/.nvm/nvm.sh", shell=True, check=True)
45
- subprocess.run(["nvm", "install", version], check=True)
46
- subprocess.run(["nvm", "use", version], check=True)
47
  print(f"Node.js updated to version: {version}")
48
 
49
 
 
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