Spaces:
Running
Running
Update app.py
Browse files
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 |
|