Skip to content

Instantly share code, notes, and snippets.

@Rulinski
Created January 23, 2019 18:51
Show Gist options
  • Select an option

  • Save Rulinski/70fb157414f4dc8b7d451ed958cd0c46 to your computer and use it in GitHub Desktop.

Select an option

Save Rulinski/70fb157414f4dc8b7d451ed958cd0c46 to your computer and use it in GitHub Desktop.

Revisions

  1. Rulinski created this gist Jan 23, 2019.
    12 changes: 12 additions & 0 deletions node_update.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash
    # Using Ubuntu

    sudo apt update
    sudo apt upgrade

    #update npm
    sudo npm install npm@latest -g

    #update nodejs
    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
    sudo apt install -y nodejs