无法运行composer.phar [英] Not able to run composer.phar

查看:106
本文介绍了无法运行composer.phar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Composer 是用于PHP项目中的依赖项管理的工具.它允许您声明项目需要的依赖库,并将其安装在项目中. Composer不是软件包管理器.

Composer is a tool for dependency management in PHP projects. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. Composer is not a package manager.

我告诉我从Composer声明我的意思.最近,我尝试运行我的第一个Google API项目.有一个 quickStart 告诉我需要使用Composer.因此,我尝试使用php composer.phar install运行composer,但我得到的唯一输出是一些问号???????,并且在提取时没有任何依赖项.我还没有发现关于作曲家本身的任何特别信息,似乎必须包含一些我不知道的.phar文件. phar文件的体系结构中有什么特别之处吗?我该怎么办?

I told this to declare my meaning from Composer. Recently I have tried to run my first Google API project. There is a quickStart witch tells I need to use Composer. So I tried to run composer using php composer.phar install, but the only output I got was some question marks ???????, and no dependencies where fetched. I haven't noticed anything special about composer itself, it seems that there must be something with .phar files that I don't know. Is there anything special in the architecture of phar files? What should I do?

我在Google上搜索了很多,但是没有人遇到与我相同的问题.

I googled a lot, but there was nobody having the same problem as mine.

推荐答案

您描述的问题听起来像是在php.ini中启用了detect_unicode.您应该禁用它,因为它实际上没有用,并且会产生相移问题.

The issue you describe sounds like you have detect_unicode enabled in your php.ini. You should disable it because it really is of no use and creates problems with phars.

使用composer安装程序可以检查设置并警告您此类问题.

By the way using the composer installer would do a check of settings and warn you about such problems.

这篇关于无法运行composer.phar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆