--- a/build/npm/postinstall.ts
+++ b/build/npm/postinstall.ts
@@ -93,6 +93,7 @@
 	if (dir === 'build') {
 		env['npm_config_target'] = process.versions.node;
 		env['npm_config_arch'] = process.arch;
+		env['npm_config_nodedir'] = '';
 	}
 }
 
