From c9b64082d059e2b391360ee38ba6667ecb229d0e Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Sat, 22 Apr 2023 15:42:35 +0300 Subject: [PATCH] Replace nvm with n on colab --- colab/GPU.ipynb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/colab/GPU.ipynb b/colab/GPU.ipynb index 25f5b8b01..e82f9891b 100644 --- a/colab/GPU.ipynb +++ b/colab/GPU.ipynb @@ -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",