Skip to content

Instantly share code, notes, and snippets.

@zamantousif
Last active April 17, 2024 14:50
Show Gist options
  • Save zamantousif/0a89c56e06bd9087aa4908b2f5ce23ff to your computer and use it in GitHub Desktop.
Save zamantousif/0a89c56e06bd9087aa4908b2f5ce23ff to your computer and use it in GitHub Desktop.

Revisions

  1. zamantousif revised this gist Apr 17, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,3 +4,8 @@

    curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&\
    sudo apt-get install -y nodejs


    # If running into dpkg errors, follow the advice here https://github.com/nodesource/distributions/issues/1157#issuecomment-1605699451
    # sudo dpkg --remove --force-remove-reinstreq libnode72:amd64
    # sudo dpkg --remove --force-remove-reinstreq libnode-dev
  2. zamantousif created this gist Apr 17, 2024.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Check the valid version to install as per your Ubuntu distribution on nodesource github
    # https://github.com/nodesource/distributions?tab=readme-ov-file#ubuntu-versions
    # Run below commands for installing latest available nodejs from nodesource ppa on Ubuntu 22.04 (latest at the time of writing)

    curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&\
    sudo apt-get install -y nodejs