github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/scripts/get_nodejs.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  VERSION=v12.9.0
     4  NODE_FULL=node-${VERSION}-linux-x64
     5  
     6  mkdir -p ~/.local/bin
     7  mkdir -p ~/.local/node
     8  wget http://nodejs.org/dist/${VERSION}/${NODE_FULL}.tar.gz -O ~/.local/node/${NODE_FULL}.tar.gz
     9  tar -xzf ~/.local/node/${NODE_FULL}.tar.gz -C ~/.local/node/
    10  ln -s ~/.local/node/${NODE_FULL}/bin/node ~/.local/bin/node
    11  ln -s ~/.local/node/${NODE_FULL}/bin/npm ~/.local/bin/npm
    12  export PATH=~/.local/bin:$PATH
    13  npm i -g dredd
    14  ln -s ~/.local/node/${NODE_FULL}/bin/dredd ~/.local/bin/dredd