dotfiles/scripts/node.sh

23 lines
446 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2021-07-27 18:59:49 +00:00
function install () {
echo "installing node js"
curl -fsSL https://fnm.vercel.app/install | bash -s -- --skip-shell
node-update
2021-08-17 05:08:52 +00:00
printf "\n\n"
node --version
2021-07-27 18:59:49 +00:00
}
function uninstall () {
echo "uninstalling node js"
sudo rm -rf $ME/.fnm
}
if [ "$1" == "install" ]; then
install
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall
else
echo "please specify args with install or uninstall"
fi