Skip to content
Snippets Groups Projects
Unverified Commit cd9759d0 authored by ylemkimon's avatar ylemkimon Committed by GitHub
Browse files

fix(npm): delete hashed location after installing npm (#7725)

parent 7a878373
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ export async function generateLockFiles( ...@@ -59,7 +59,7 @@ export async function generateLockFiles(
const npmCompatibility = config.constraints?.npm; const npmCompatibility = config.constraints?.npm;
if (validRange(npmCompatibility)) { if (validRange(npmCompatibility)) {
installNpm += `@${quote(npmCompatibility)}`; installNpm += `@${quote(npmCompatibility)}`;
preCommands.push(installNpm); preCommands.push(installNpm, 'hash -d npm');
} }
cmdOptions = '--ignore-scripts --no-audit'; cmdOptions = '--ignore-scripts --no-audit';
if (skipInstalls !== false) { if (skipInstalls !== false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment