mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
update install node
This commit is contained in:
parent
361a072d9c
commit
8ddeebac15
1 changed files with 15 additions and 1 deletions
|
@ -3,10 +3,24 @@
|
||||||
set -o nounset # error when referencing undefined variable
|
set -o nounset # error when referencing undefined variable
|
||||||
set -o errexit # exit when command fails
|
set -o errexit # exit when command fails
|
||||||
|
|
||||||
|
installnodemac() { \
|
||||||
|
brew install node
|
||||||
|
}
|
||||||
|
|
||||||
|
installnodeubuntu() { \
|
||||||
|
sudo apt install nodejs
|
||||||
|
}
|
||||||
|
|
||||||
|
installnodearch() { \
|
||||||
|
sudo pacman -S nodejs
|
||||||
|
}
|
||||||
|
|
||||||
installnode() { \
|
installnode() { \
|
||||||
echo "Installing node..."
|
echo "Installing node..."
|
||||||
sudo curl -sL install-node.now.sh/lts | bash
|
[ "$(uname)" == "Darwin" ] && installnodemac
|
||||||
|
[ -n "$(uname -a | grep Ubuntu)" ] && installnodeubuntu
|
||||||
|
[ -f "/etc/arch-release" ] && installnodearch
|
||||||
|
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
||||||
npm i -g neovim
|
npm i -g neovim
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue