browsh/webext/contrib/setup_node.sh
Thomas Buckley-Houston 0b3ff030cd Release v0.2.3
2018-01-30 17:50:55 +08:00

12 lines
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