From 143a023683b889d204edc1860b4d9defa1e31995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatriz=20Sopen=CC=83a=20Merino?= Date: Thu, 7 Jul 2022 05:07:34 +0200 Subject: [PATCH] CONFIG. Remove 'node_modules' and 'package-lock.json' when run the npm script 'preinstall' --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 228073be..acb05712 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "version": "0.1.0", "private": true, "scripts": { - "preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions", + "install:clean": "rm -rf node_modules package-lock.json", + "preinstall": "npm run install:clean && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions", "postinstall": "npm run lint", "serve": "vue-cli-service serve", "build": "vue-cli-service build",