简体   繁体   English

在Windows中安装或使用php composer(失败)

[英]Install or use php composer in windows (fails)

so basically i was using composer on my windows installation without any problems. 所以基本上我在Windows安装上使用composer时没有任何问题。 Suddenly i get this error on every project (installing composer.phar manually): 突然我在每个项目上都收到此错误(手动安装composer.phar):

  [RuntimeException]                                                           
  Could not rename "Xampp\htdocs\symfony.dev\vendor/twig/twig/fabpot-Twig-  
  70fff8b" to "Users\xxx\AppData\Local\Temp/23cd0cd163431d8305983511f9  
  b1c2af".

I tried installing or updating on different php apps. 我尝试在不同的php应用程序上安装或更新。 Always the same result. 总是相同的结果。

Also i tried to install composer via the windows setup which leads me to this error message: 我也尝试通过Windows安装程序安装composer,这导致我出现此错误消息:

Internal Error [ERR_LOGIC]: An internal script did not run correctly (exit code 1)

So far i couldn't get any official help. 到目前为止,我还没有得到任何官方帮助。 Anybody else experienced this error? 还有其他人遇到此错误吗? Your help is appreciated... thanks a lot in advance! 感谢您的帮助...在此先多谢!

When you run any command or start cmd. 当您运行任何命令或启动cmd时。 You have recived: 您已经收到:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved. 
The system cannot find the path specified.

If have, Try the following. 如果有,请尝试以下方法。

Open the Registry Editor, type regedit and hit Enter
Navigate to HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun 
and clear the values.

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

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