From 218d75d93901c37200bb58610c5641794c4c3f88 Mon Sep 17 00:00:00 2001 From: Feruz Date: Sun, 16 Dec 2018 20:31:20 +0200 Subject: [PATCH] upd post-clone --- appcenter-post-clone.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/appcenter-post-clone.sh b/appcenter-post-clone.sh index cd6e85ea6..baa4c76de 100644 --- a/appcenter-post-clone.sh +++ b/appcenter-post-clone.sh @@ -1,10 +1,6 @@ -#!/bin/sh - -# please specify required Node.js version -NODE_VERSION=8.12.0 - -# 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 +#!/usr/bin/env bash +set -ex +brew uninstall node@6 +NODE_VERSION="8.12.0" +curl "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}.pkg" > "$HOME/Downloads/node-installer.pkg" +sudo installer -store -pkg "$HOME/Downloads/node-installer.pkg" -target "/" \ No newline at end of file