From de543f214b36e5495feccbf41b7b7e537cb759cf Mon Sep 17 00:00:00 2001 From: Feruz Date: Sun, 16 Dec 2018 21:15:10 +0200 Subject: [PATCH] nvm fix --- appcenter-post-clone.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/appcenter-post-clone.sh b/appcenter-post-clone.sh index 9b152e7e0..40910f6f7 100644 --- a/appcenter-post-clone.sh +++ b/appcenter-post-clone.sh @@ -2,10 +2,11 @@ printf "post-clone.sh\n" -brew uninstall node@6 +# please specify required Node.js version +NODE_VERSION=8.12.0 -curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash - -nvm use --delete-prefix v6.14.4 --silent - -nvm install 8.12.0 \ No newline at end of file +# workaround to override the v8 alias +npm config delete prefix +. ~/.bashrc +nvm install "$NODE_VERSION" +nvm alias node8 "$NODE_VERSION" \ No newline at end of file