简体   繁体   English

Meteor - 无法在Windows 8.1上运行tasklist.exe

[英]Meteor - Can't run tasklist.exe on Windows 8.1

I installed the newest version of Meteor (v 1.1.0.2) using the Windows Installer. 我使用Windows Installer安装了最新版本的Meteor(v 1.1.0.2)。 I am using Windows 8.1. 我使用的是Windows 8.1。 Everything seems to have installed correctly as I am able to create new meteor projects using meteor create projectName . 一切似乎已经正确安装,因为我能够使用meteor create projectName创建新的流星项目。 When I enter the project and run meteor , it crashes with the following error: 当我进入项目并运行meteor ,它崩溃并出现以下错误:

C:\projects
λ meteor create projectName
projectName: created.

To run your new app:
  cd projectName
  meteor

C:\projects
λ cd projectName\

C:\projects\projectName
λ meteor
[[[[[ C:\projects\projectName ]]]]]

=> Started proxy.

C:\Users\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fibers\future.js:278
                                                throw(ex);
                                                      ^
Error: Couldn't run tasklist.exe: {"killed":false,"code":1,"signal":null}
    at Object.Future.wait (C:\Users\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fibers\future.js:398:15)
    at findMongoPids (C:\Users\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-mongo.js:120:16)
    at findMongoAndKillItDead (C:\Users\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-mongo.js:236:14)
    at launchOneMongoAndWaitForReadyForInitiate (C:\Users\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-mongo.js:360:7)
    at launchMongo (C:\Users\Nate\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\Nate\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\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-mongo.js:670:10)
    at C:\Users\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-all.js:199:26
    - - - - -
    at C:\Users\Nate\AppData\Local\.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\tools\run-mongo.js:73:24
    at ChildProcess.exithandler (child_process.js:662:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Socket.<anonymous> (child_process.js:979:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

All the solutions I have found relate to not having tasklist.exe as part of the PATH which I have since added but the issue still persists. 我发现的所有解决方案都涉及到没有将tasklist.exe作为PATH的一部分,我已经添加了但是问题仍然存在。 What do I need to do to get Meteor to run? 我需要做些什么才能让Meteor运行?

I had this issue in Windows 7 and the solution was to run the CMD as administrator . 我在Windows 7中遇到过这个问题,解决方案是以管理员身份运行CMD

What is strange is that without being administrator I was able to use tasklist.exe from the CMD. 奇怪的是,如果不是管理员,我可以使用CMD中的tasklist.exe

I had the same problem on Windows 8.1, there is some kind of issue with task list in OS that can be fixed with an update. 我在Windows 8.1上遇到了同样的问题,操作系统中的任务列表存在某种问题,可以通过更新修复。 Try going to Windows Update in Control Panel and install optional updates. 尝试转到控制面板中的Windows Update并安装可选更新。 It worked for me. 它对我有用。

https://support.microsoft.com/en-us/kb/2732840 https://support.microsoft.com/en-us/kb/2732840

If not, there is more here: 如果没有,这里还有更多:

https://github.com/meteor/windows-preview/issues/71#issuecomment-77924368 https://github.com/meteor/windows-preview/issues/71#issuecomment-77924368

I got the same issue but after setting up the environment variable, It started working. 我遇到了同样的问题,但在设置环境变量后,它开始工作了。 add "C:\\Windows\\System32" in path variable.. and gonna work fine.. 在路径变量中添加“C:\\ Windows \\ System32”..并且可以正常工作..

The solution to this issue for me was to enable Windows Instrumentation Service. 我这个问题的解决方案是启用Windows Instrumentation Service。

To enable the service open services.msc from the run prompt Change the startup type to automatic and start the service. 从运行提示符启用服务open services.msc将启动类型更改为自动并启动服务。 Once completed I was able to start the meteor app, I already had the environment paths and was running as admin, only after setting this was I am to run. 一旦完成,我就可以启动流星应用程序,我已经拥有了环境路径并且正在以管理员身份运行,只有在设置完之后我才能运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM