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.
- package/lib/updater.js +3 -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
|
-
|
|
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
|
|