mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Lookup npm.cmd instead of npm on Windows
This commit is contained in:
@@ -369,6 +369,18 @@ meteorNpm._execFileSync = function (file, args, opts) {
|
||||
return future.wait();
|
||||
};
|
||||
|
||||
var runNpmCommand = function (args, opts) {
|
||||
var npmPath;
|
||||
|
||||
if (os.platform() === "win32") {
|
||||
npmPath = files.pathJoin(files.getDevBundle(), "bin", "npm.cmd");
|
||||
} else {
|
||||
npmPath = files.pathJoin(files.getDevBundle(), "bin", "npm");
|
||||
}
|
||||
|
||||
return meteorNpm._execFileSync(npmPath, args, opts);
|
||||
}
|
||||
|
||||
var constructPackageJson = function (packageName, newPackageNpmDir,
|
||||
npmDependencies) {
|
||||
var packageJsonContents = JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user