fix node version variable
This commit is contained in:
parent
e21a67d12a
commit
cdc841b770
@ -1,6 +1,6 @@
|
|||||||
if ! command -v nodenv &>/dev/null; then
|
if ! command -v nodenv &>/dev/null; then
|
||||||
URL=https://nodejs.org/download/release/index.json
|
URL=https://nodejs.org/download/release/index.json
|
||||||
DEFAULT_NODE_VERSION=(curl -s "$URL" | jq -r '.[] | select(.lts != false) | .version' | head -n 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