We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23906d3 commit 7bcd1c3Copy full SHA for 7bcd1c3
install.sh
@@ -1,12 +1,13 @@
1
#!/bin/bash
2
set -e
3
-curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
4
export NVM_DIR="$HOME/.nvm"
5
export NVM_NODEJS_ORG_MIRROR="$2"
+git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
6
+pushd "$NVM_DIR"
7
+git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
8
+popd
9
chmod +x "$NVM_DIR/nvm.sh"
10
. "$NVM_DIR/nvm.sh" --no-use
-nvm install $1
-nvm use $1
-npm -g install npm@latest
11
+nvm install "$1"
12
echo "SETUP_NODE_NVM_NODE: $(which node)"
13
echo "SETUP_NODE_NVM_NPM: $(which npm)"
0 commit comments