Spaces:
Runtime error
Runtime error
File size: 853 Bytes
63e0ab2 0a0fa27 c6811c2 ed2b231 0a0fa27 22a3f9b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import subprocess
# subprocess.run("wget https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh && bash install.sh", shell=True)
# subprocess.run(". ~/.bashrc", shell=True)
# subprocess.run("echo 'setting NVM_DIR:' && export NVM_DIR='$HOME/.nvm'", shell=True)
# subprocess.run("[ -s '$NVM_DIR/nvm.sh' ] && \. '$NVM_DIR/nvm.sh'", 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) |