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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29271162/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 11:13:42  来源:igfitidea点击:

why cannot find composer.phar file after install composer

phplaravelcomposer-phplaravel-routing

提问by Leoh

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?

采纳答案by disf.asia

composer.phar is a single file, you can just move it to the system32 folder and have it visible globally

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

回答by Daniel Brennan

It's not in your path. Check environmental variables.

它不在你的道路上。检查环境变量。

回答by FentomX1

I believe you had it already installed in global path, its yours mentioned C:\ProgramData\ComposerSetup\bin; you just had to restart windows or command line window in order to global environment path to take effect.

我相信您已经将它安装在全局路径中,您提到了 C:\ProgramData\ComposerSetup\bin; 您只需要重新启动 Windows 或命令行窗口即可使全局环境路径生效。

You can find composer.phar very easily with very good tool called listary as i did by the way. It uses some proprietary very effective fuzzy search heuristics and for me basically could find almost any file i wanted anytime.

你可以很容易地找到 composer.phar 使用非常好的工具 listary,就像我所做的那样。它使用了一些专有的非常有效的模糊搜索启发式方法,对我来说基本上可以随时找到我想要的几乎任何文件。

回答by IVY

I believe you had it already installed in global path, its yours mentioned C:\ProgramData\ComposerSetup\bin; you just had to restart windows or command line window in order to global environment path to take effect.

我相信您已经将它安装在全局路径中,您提到了 C:\ProgramData\ComposerSetup\bin; 您只需要重新启动 Windows 或命令行窗口即可使全局环境路径生效。

You can find composer.phar very easily with very good tool called listary as i did by the way. It uses some proprietary very effective fuzzy search heuristics and for me basically could find almost any file i wanted anytime.

你可以很容易地找到 composer.phar 使用非常好的工具 listary,就像我所做的那样。它使用了一些专有的非常有效的模糊搜索启发式方法,对我来说基本上可以随时找到我想要的几乎任何文件。