From 255cee376aa5f7ede873bceefef4967393e84371 Mon Sep 17 00:00:00 2001 From: veypi Date: Sat, 6 Apr 2024 23:33:19 +0800 Subject: [PATCH] node --- nodejs/install.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/nodejs/install.md b/nodejs/install.md index 9e36593..1bf2643 100644 --- a/nodejs/install.md +++ b/nodejs/install.md @@ -26,7 +26,7 @@ npm config get registry - if old nodejs still exist - > sudo apt-get purge nodejs + > sudo apt purge nodejs ### node && yarn @@ -36,9 +36,18 @@ npm config get registry curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list -sudo apt-get update && sudo apt-get install yarn +sudo apt update && sudo apt install yarn sudo yarn global add n sudo n stable ``` + + +### nvm + +```bash + +https://github.com/nvm-sh/nvm +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash +```