I can't run meteor command, Error: Couldn't run netstat -ano: {}


#1

Error: Couldn’t run netstat -ano: {}
at Object.Future.wait (C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_3
2\dev_bundle\lib\node_modules\fibers\future.js:398:15)
at findMongoPids (C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\too
ls\run-mongo.js:120:16)
at findMongoAndKillItDead (C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x
86_32\tools\run-mongo.js:236:14)
at launchOneMongoAndWaitForReadyForInitiate (C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1
.3\mt-os.windows.x86_32\tools\run-mongo.js:360:7)
at launchMongo (C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools
\run-mongo.js:612:7)
at [object Object]._.extend.startOrRestart (C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1
.3\mt-os.windows.x86_32\tools\run-mongo.js:712:19)
at [object Object].
.extend.start (C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.w
indows.x86_32\tools\run-mongo.js:670:10)
at C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-all.js:1
99:26
- - - - -
at C:\Users\Chris\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-mongo.js
:89:28
at ChildProcess.exithandler (child_process.js:654:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)

I am getting this error right after trying to run meteor I can’t figure out what to do


How to deploy meteor app on windows server 2008 r2
#2

I had the above issue on a Windows 8.1 machine and the following github issue/solution worked for me:
github post

I’ll repeat the solution:
damiantje99 commented on May 10: The fix is the following:

Go to: C:\Users%username%\AppData\Local\ .meteor\packages\meteor-tool\VERSION\mt-os.windows.x86_32\tools

In there you have a file called run-mongo.js

Open that file with notepad++ or anything similair.

Then on line 87 find the text:

child_process.exec(‘netstat -ano’, function (error, stdout, stderr) {

And replace it with

child_process.exec(‘netstat -ano’, {maxBuffer: 1024 * 1024}, function (error, stdout, stderr) {