简体   繁体   English

为什么安装composer后找不到composer.phar文件

[英]why cannot find composer.phar file after install composer

I try to install composer with the installer for Windows , but could not be installed globally.我尝试使用 Windows 安装程序安装 composer,但无法全局安装。

The message:消息:

Could not open input file: c:\\windows\\system32\\composer.phar无法打开输入文件:c:\\windows\\system32\\composer.phar

I have to run on the following url:我必须在以下网址上运行:

C:\ProgramData\ComposerSetup\bin;

My environment variables are:我的环境变量是:

C:\wamp\bin\php\php5.4.12;C:\ProgramData\ComposerSetup\bin;

How can I install composer globally?如何全局安装composer?

composer.phar 是单个文件,您可以将其移动到 system32 文件夹并使其全局可见

It's not in your path.它不在你的道路上。 Check environmental variables.检查环境变量。

I believe you had it already installed in global path, its yours mentioned C:\\ProgramData\\ComposerSetup\\bin;我相信您已经将它安装在全局路径中,您提到了 C:\\ProgramData\\ComposerSetup\\bin; you just had to restart windows or command line window in order to global environment path to take effect.您只需要重新启动 Windows 或命令行窗口即可使全局环境路径生效。

You can find composer.phar very easily with very good tool called listary as i did by the way.你可以很容易地找到 composer.phar 使用非常好的工具 listary,就像我所做的那样。 It uses some proprietary very effective fuzzy search heuristics and for me basically could find almost any file i wanted anytime.它使用了一些专有的非常有效的模糊搜索启发式方法,对我来说基本上可以随时找到我想要的几乎任何文件。

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

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