2019-10-14 15:08:22 +03:00
|
|
|
#!/usr/bin/env bash
|
2018-12-16 21:38:51 +03:00
|
|
|
|
2019-10-14 15:08:22 +03:00
|
|
|
printf "post-clone.sh\n"
|
2018-12-16 21:38:51 +03:00
|
|
|
|
2019-10-14 15:08:22 +03:00
|
|
|
node -v
|
2018-12-27 11:46:57 +03:00
|
|
|
|
2019-10-14 15:08:22 +03:00
|
|
|
# please specify required Node.js version
|
|
|
|
NODE_VERSION=8.16.0
|
2018-12-16 22:15:10 +03:00
|
|
|
|
2019-10-14 15:08:22 +03:00
|
|
|
# workaround to override the v8 alias
|
|
|
|
npm config delete prefix
|
|
|
|
. ~/.bashrc
|
|
|
|
nvm install "$NODE_VERSION"
|
|
|
|
nvm alias node8 "$NODE_VERSION"
|
|
|
|
nvm alias default v8.16.0
|
|
|
|
node -v
|
2018-12-27 11:46:57 +03:00
|
|
|
|
2019-10-14 15:08:22 +03:00
|
|
|
printf "end of post-clone.sh\n"
|