Skip to content

Commit

Permalink
fix(postinstallHelper): set "PREFER_GLOBAL_PATH" if "local"
Browse files Browse the repository at this point in the history
so that "mongodb-memory-server" actually installs locally instead of globally

fixes #833
  • Loading branch information
hasezoey committed Dec 12, 2023
1 parent b1b557b commit 9f523de
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -40,6 +40,8 @@ export async function postInstallEnsureBinary(
ResolveConfigVariables.DOWNLOAD_DIR,
resolve(homedir(), '.cache', 'mongodb-binaries')
);
} else {
setDefaultValue(ResolveConfigVariables.PREFER_GLOBAL_PATH, 'false');
}

if (version) {
Expand Down

0 comments on commit 9f523de

Please sign in to comment.