From 0d4e6a0258131418729a4252bebbd2aa36dca7b1 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 21 Dec 2021 19:00:21 +1100 Subject: [PATCH] fix(developer): tweak script for npm fix --- windows/src/developer/inst/download.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/src/developer/inst/download.in b/windows/src/developer/inst/download.in index 0637faded6..9f7049f259 100644 --- a/windows/src/developer/inst/download.in +++ b/windows/src/developer/inst/download.in @@ -125,8 +125,8 @@ heat-model-compiler: # available when in the repo path, we need to remove them before attempting to continue. # Yuck! ref: https://github.com/npm/cli/issues/3975#issuecomment-985305678 # ref: https://github.com/npm/cli/issues/2921 -# don't forget to uninstall both at the same time or it *still* fails... - npm uninstall @keymanapp/models-templates @keymanapp/models-wordbreakers +# can't use npm uninstall because it depends on @keymanapp/models-types being present! + cat package.json | grep -v "@keymanapp/models-templates" | grep -v "@keymanapp/models-wordbreakers" > package.json npm install kmtypes.tgz --production --no-optional npm install --production --no-optional