auto grab latest lts version
This commit is contained in:
parent
f35284481c
commit
e21a67d12a
@ -1,6 +1,6 @@
|
|||||||
if ! command -v nodenv &>/dev/null; then
|
if ! command -v nodenv &>/dev/null; then
|
||||||
# FIXME: Make this pick whatever the latest LTS is
|
URL=https://nodejs.org/download/release/index.json
|
||||||
DEFAULT_NODE_VERSION="20.13.1"
|
DEFAULT_NODE_VERSION=(curl -s "$URL" | jq -r '.[] | select(.lts != false) | .version' | head -n 1)
|
||||||
|
|
||||||
git clone https://github.com/nodenv/nodenv.git ~/.nodenv
|
git clone https://github.com/nodenv/nodenv.git ~/.nodenv
|
||||||
sudo ln -vs ~/.nodenv/bin/nodenv /usr/local/bin/nodenv
|
sudo ln -vs ~/.nodenv/bin/nodenv /usr/local/bin/nodenv
|
||||||
|
Loading…
Reference in New Issue
Block a user