Skip to content

Commit 9f523de

Browse files
committed
fix(postinstallHelper): set "PREFER_GLOBAL_PATH" if "local"
so that "mongodb-memory-server" actually installs locally instead of globally fixes #833
1 parent b1b557b commit 9f523de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/mongodb-memory-server-core/src/util/postinstallHelper.ts

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export async function postInstallEnsureBinary(
4040
ResolveConfigVariables.DOWNLOAD_DIR,
4141
resolve(homedir(), '.cache', 'mongodb-binaries')
4242
);
43+
} else {
44+
setDefaultValue(ResolveConfigVariables.PREFER_GLOBAL_PATH, 'false');
4345
}
4446

4547
if (version) {

0 commit comments

Comments
 (0)