Replace nvm with n on colab

This commit is contained in:
SillyLossy
2023-04-22 15:42:35 +03:00
parent f854948de5
commit c9b64082d0

View File

@@ -233,15 +233,10 @@
"# ---\n",
"# nodejs\n",
"%cd /\n",
"def setupNVM():\n",
" !curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash\n",
" !export NVM_DIR=\"$HOME/.nvm\"\n",
" ![ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"\n",
"ii.addTask(\"Setup NVM\", setupNVM)\n",
"\n",
"def installNode():\n",
" !nvm install 19.1.0\n",
" !nvm use 19.1.0\n",
" !npm install -g n\n",
" !n 19\n",
" !node --version\n",
"ii.addTask(\"Install node\", installNode)\n",
"\n",
"\n",