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.
This commit is contained in:
parent
b135dadb17
commit
bf57a8f660
@ -2345,7 +2345,7 @@ gulp.task(
|
|||||||
opts.cwd = installPath;
|
opts.cwd = installPath;
|
||||||
distPath = path.relative(installPath, distPath);
|
distPath = path.relative(installPath, distPath);
|
||||||
}
|
}
|
||||||
safeSpawnSync("npm", ["install", distPath], opts);
|
safeSpawnSync("npm", ["install", "--force", distPath], opts);
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user