Created
November 7, 2022 11:22
-
-
Save mandrean/71f2cbf707025a5983c0fc04d78f3e9a to your computer and use it in GitHub Desktop.
Revisions
-
mandrean created this gist
Nov 7, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # update system $ sudo apt update && sudo apt upgrade # uninstall old node (v10?) $ sudo apt remove nodejs npm -y # install nvm $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash # use 'unofficial builds' in nvm $ echo "export NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release" >> ~/.bashrc # reload bashrc $ source ~/.bashrc # install latest LTS $ nvm install --lts $ nvm use --lts # verify versions $ node -v $ npm -v