简体   繁体   中英

Composer error on installing to phpBB

I want to start making my own mods for PHPBB however I am having trouble setting up composer.

I have installed composer to my windows server and I run this in my command line

composer require :

C:\Inetpub\vhosts\Servers\5\localuser\gorrors\httpdocs\community

and I get this error:

"`UnexpectedValueExpection`" cannot parse version.

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?

What am I doing wrong? Any help would be great

Seems that you are using the require command wrong here. It is used to add a specified package to the composer.json file as one that your project depends on.

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 .

After specifying dependencies you can perform composer install , which will search for the packages from the set up repositories . Note that:

By default only the Packagist repository is registered in Composer. You can add more repositories to your project by declaring them in composer.json .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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