[misc] update default version

This commit is contained in:
Klesh Wong 2021-01-16 18:54:46 +08:00
parent 1c51de5888
commit ba6a41cc75

View File

@ -7,7 +7,7 @@ DIR=$(dirname "$(readlink -f "$0")")
FILES_PATH=$PREFIX/nodejs FILES_PATH=$PREFIX/nodejs
NODE_BIN=$PREFIX/bin/node NODE_BIN=$PREFIX/bin/node
NODE_URL=https://nodejs.org/dist NODE_URL=https://nodejs.org/dist
NODE_VERSION=v14.15.1 NODE_VERSION=v14.15.4
NPM_BIN=npm NPM_BIN=npm
if in_china; then if in_china; then
NODE_URL=https://npm.taobao.org/mirrors/node NODE_URL=https://npm.taobao.org/mirrors/node
@ -22,9 +22,6 @@ lspkgs() {
| jq '.[] | "\(.version) \(if .lts then "(lts)" else "" end)"' -r | jq '.[] | "\(.version) \(if .lts then "(lts)" else "" end)"' -r
} }
cocsetup() {
}
uninstall() { uninstall() {
if [ -f "$FILES_PATH" ]; then if [ -f "$FILES_PATH" ]; then
tac "$FILES_PATH" | grep -v '/$' | xargs sudo rm -f tac "$FILES_PATH" | grep -v '/$' | xargs sudo rm -f