github.com/rohankumardubey/nomad@v0.11.8/scripts/vagrant-linux-unpriv-ui.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # Install NVM for simple node.js version management
     4  curl -sSL --fail -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
     5  
     6  # This enables NVM without a logout/login
     7  export NVM_DIR="/home/vagrant/.nvm"
     8  # shellcheck source=/dev/null
     9  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
    10  
    11  # Install Node, Ember CLI, and Phantom for UI development
    12  nvm install 10.15.3
    13  nvm alias default 10.15.3
    14  npm install -g ember-cli
    15  
    16  # Install Yarn for front-end dependency management
    17  curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2