From bf57a8f660013c519ef678dc6cd994e10f0fcd81 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 2 Apr 2023 15:57:32 +0200 Subject: [PATCH] Force-install when using `gulp dist-install` (issue 15435) When installing the PDF.js project itself it's currently necessary to use `--force` in order for all packages to install correctly, see issue 15429, hence the same is also necessary when using the `gulp dist-install` command for local development/testing. --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 243cceb7f..5f84971ba 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2345,7 +2345,7 @@ gulp.task( opts.cwd = installPath; distPath = path.relative(installPath, distPath); } - safeSpawnSync("npm", ["install", distPath], opts); + safeSpawnSync("npm", ["install", "--force", distPath], opts); done(); }) );