Spaces:
Runtime error
Runtime error
import subprocess | |
subprocess.run("wget --version", shell=True) | |
subprocess.run("wget https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh && bash install.sh", shell=True) | |
subprocess.run("source ~/.bashrc", shell=True) | |
subprocess.run("nvm -v", shell=True) | |
subprocess.run("nvm install v18", shell=True) | |
#subprocess.run("curl -fsSL https://deb.nodesource.com/setup_18.x", shell=True) | |
#subprocess.run("apt install nodejs", shell=True) | |
# subprocess.run("sudo apt install npm", shell=True) | |
subprocess.run("cat /etc/os-release", shell=True) | |
subprocess.run("echo 'node version:' && node --version", shell=True) | |
subprocess.run("echo 'npm version:' && npm --version", shell=True) | |
subprocess.run("pwd && ls -al", shell=True) |