amalgm 0.1.168 → 0.1.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/updater.js +3 -2
  2. package/package.json +1 -1
package/lib/updater.js CHANGED
@@ -97,8 +97,9 @@ function npmInstallArgs(tag, options = {}) {
97
97
  ? options.npmPrefix
98
98
  : globalPrefixForPackageRoot(options.packageRoot);
99
99
  // The --prefix flag outranks every npm config layer, including an inherited
100
- // npm_config_prefix pointing at a tree this process does not run from.
101
- if (prefix) args.push('--prefix', prefix);
100
+ // npm_config_prefix pointing at a tree this process does not run from. npm
101
+ // runs through cmd.exe on Windows, where a bare path with spaces would split.
102
+ if (prefix) args.push('--prefix', process.platform === 'win32' ? `"${prefix}"` : prefix);
102
103
  return args;
103
104
  }
104
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amalgm",
3
- "version": "0.1.168",
3
+ "version": "0.1.169",
4
4
  "description": "Amalgm local computer runtime: login, MCP, chat, events, previews, and tunnels.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,