From cba253f139d722fb421446c237aa094bf634ab3c Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Mon, 6 May 2024 20:53:21 +0400 Subject: [PATCH] fix: prevent failing npm install on peer mismatch (#3311) Closes https://github.com/webstudio-is/webstudio/pull/3300 https://github.com/webstudio-is/webstudio/issues/3284 Here's another fix. Instead of just passing --force flag to npm install command I added .npmrc with force=true which will affect not only webstudio init command but also subsequent npm install calls by user. --- packages/cli/templates/defaults/.npmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 packages/cli/templates/defaults/.npmrc diff --git a/packages/cli/templates/defaults/.npmrc b/packages/cli/templates/defaults/.npmrc new file mode 100644 index 000000000000..5e3cde50ab9f --- /dev/null +++ b/packages/cli/templates/defaults/.npmrc @@ -0,0 +1 @@ +force=true