[英]Composer error on installing to phpBB
I want to start making my own mods for PHPBB however I am having trouble setting up composer. 我想开始为PHPBB制作自己的mod,但是我在设置作曲家时遇到了麻烦。
I have installed composer to my windows server and I run this in my command line 我已经在Windows服务器上安装了composer,并在命令行中运行它
composer require : 作曲家要求:
C:\Inetpub\vhosts\Servers\5\localuser\gorrors\httpdocs\community
and I get this error: 我得到这个错误:
"`UnexpectedValueExpection`" cannot parse version.
“`UnexpectedValueExpection`”无法解析版本。
When googling this error message everyone else seems to fix the error by running selfupdate however when I do this it says I have the latest version? 谷歌搜索此错误消息时,其他所有人似乎都通过运行selfupdate来修复该错误,但是当我这样做时,它说我拥有最新版本?
What am I doing wrong? 我究竟做错了什么? Any help would be great
任何帮助都会很棒
Seems that you are using the require command wrong here. 似乎您在这里使用了require命令错误。 It is used to add a specified package to the
composer.json
file as one that your project depends on. 它用于将指定的程序包作为您的项目所依赖的程序包添加到
composer.json
文件。
As for the expected package name... From the manual : 至于预期的包装名称...从手册中 :
The package name consists of a vendor name and the project's name.
软件包名称由供应商名称和项目名称组成。 Often these will be identical - the vendor name just exists to prevent naming clashes.
通常它们是相同的-供应商名称只是为了防止命名冲突而存在。 It allows two different people to create a library named json , which would then just be named igorw/json and seldaek/json .
它允许两个不同的人创建一个名为json的库,然后将其命名为igorw / json和seldaek / json 。
After specifying dependencies you can perform composer install , which will search for the packages from the set up repositories . 在指定依赖项之后,您可以执行composer安装 ,它将从设置的存储库中搜索软件包。 Note that:
注意:
By default only the Packagist repository is registered in Composer.
默认情况下,仅Packagist存储库在Composer中注册。 You can add more repositories to your project by declaring them in composer.json .
您可以通过在composer.json中声明它们来向项目添加更多存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.