Skip to content

Commit

Permalink
updated install-nodejs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Feb 11, 2020
1 parent 5b0e69e commit 7b34e47
Show file tree
Hide file tree
Showing 2 changed files with 427 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/scripts/install-nodejs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/env bash

# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
BASE_DIR=`dirname $0`
/bin/bash ${BASE_DIR}/install-nvm.sh
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Expand Down
Loading

0 comments on commit 7b34e47

Please sign in to comment.