browsh/webext/contrib/setup_node.sh

12 wiersze
261 B
Bash
Executable File

#!/bin/bash
if ! type "nvm" > /dev/null; then
rm -rf ~/.nvm
NVM_VERSION=0.33.8
curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash
source $HOME/.nvm/nvm.sh
fi
nvm install # See `/.nvmrc` for current Node version