title: npm install from C# code fails
body: <p>I am trying to perform <code>npm install</code> from C# code using process. The bundle directory is product of meteor build, and npm install inside \bundle\programs\server is mandatory operation before running the build. </p>
  
  <p>Here is C# code:</p>
  
  <pre><code>processInfo.CreateNoWindow = true;
  processInfo.UseShellExecute = false;
  processInfo.RedirectStandardError = true;
  processInfo.RedirectStandardOutput = true;
  processInfo.RedirectStandardInput = true;
  processInfo.WorkingDirectory = @"C:\some_service\bundle\programs\server";
  processInfo.FileName = @"C:\Program Files (x86)\nodejs\node.exe";
  processInfo.Arguments = "npm install";
  process = Process.Start(processInfo);
  process.WaitForExit();
  
  stderr_str = process.StandardError.ReadToEnd();
  stdout_str = process.StandardOutput.ReadToEnd();
  </code></pre>
  
  <p>And the error code in <strong>stderr_str</strong>  variable is:</p>
  
  <pre><code>    module.js:340
      throw err;
            ^
  Error: Cannot find module 'C:\some_service\bundle\programs\server\npm'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:935:3
  </code></pre>
  
  <p>It works fine when I run this manually via cms in corresponding directory. Why it would be problem from C#, or am I doing this right?</p>
  
  <p>Any suggestion or hint would be helpful. </p>
  
  <p>EDIT1:</p>
  
  <p>After running with change from answer I got error:</p>
  
  <p>Change :</p>
  
  <pre><code>    processInfo.FileName =  @"C:\Program Files (x86)\nodejs\node.exe";
      processInfo.Arguments = @"C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js install";
  </code></pre>
  
  <p>Erorr:</p>
  
  <pre><code>module.js:340
      throw err;
            ^
  Error: Cannot find module 'C:\Program'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:935:3
  </code></pre>