@auroraflow/code 0.0.18 → 0.0.19
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/package.json
CHANGED
|
@@ -274,6 +274,9 @@ function npmCommandSpec() {
|
|
|
274
274
|
return { command: process.execPath, args: [npmExecPath] };
|
|
275
275
|
}
|
|
276
276
|
if (npmExecPath) return { command: npmExecPath, args: [] };
|
|
277
|
+
if (process.platform === "win32") {
|
|
278
|
+
return { command: process.env.ComSpec || "cmd.exe", args: ["/d", "/c", "npm"] };
|
|
279
|
+
}
|
|
277
280
|
const npmBin = findPathCommand("npm");
|
|
278
281
|
if (!npmBin) {
|
|
279
282
|
throw new Error("npm command was not found in PATH. Install Node.js/npm or add npm to PATH, then retry.");
|