Skip to content

Instantly share code, notes, and snippets.

@satomacoto
Last active October 25, 2018 05:37
Show Gist options
  • Select an option

  • Save satomacoto/52c6f754dfcdaea697d5083e7a40a239 to your computer and use it in GitHub Desktop.

Select an option

Save satomacoto/52c6f754dfcdaea697d5083e7a40a239 to your computer and use it in GitHub Desktop.

Revisions

  1. satomacoto revised this gist Oct 25, 2018. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions sudo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    sudo apt-get install -y nodejs npm
    sudo npm cache clean
    sudo npm install n -g
    sudo n stable
    exec $SHELL
  2. satomacoto created this gist Oct 24, 2018.
    7 changes: 7 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # install node & npm
    apt-get install -y nodejs npm apt-transport-https
    npm cache clean
    npm install n -g
    n stable
    ln -sf /usr/local/bin/node /usr/bin/node
    ln -sf /usr/local/bin/npm /usr/bin/npm