GithubHelp home page GithubHelp logo

Comments (10)

krissss avatar krissss commented on June 10, 2024

I installed it successfully with your command: composer require --prefer-dist kriss/yii2-log-reader "2.4" --ignore-platform-reqs

Please check your packagist repo with composer global config -l

from yii2-log-reader.

lloyd966 avatar lloyd966 commented on June 10, 2024

Thank you for your quick response.

I ran the following as per your response

composer global config -l
composer require --prefer-dist kriss/yii2-log-reader "2.4" --ignore-platform-reqs

And I still get the same error.
I do not have very much experience with composer. Any other suggestions would be greatly appreciated.

Thank you

from yii2-log-reader.

krissss avatar krissss commented on June 10, 2024

put your result with command: composer global config -l

from yii2-log-reader.

lloyd966 avatar lloyd966 commented on June 10, 2024

Below is the result from the command: composer global config -l

C:\wamp64\www\pmtts>composer global config -l
Changed current directory to C:/Users/Lloyd/AppData/Roaming/Composer
[repositories.packagist.org.type] composer
[repositories.packagist.org.url] https://repo.packagist.org
[process-timeout] 300
[use-include-path] false
[allow-plugins]
[use-parent-dir] prompt
[preferred-install] dist
[notify-on-install] true
[github-protocols] [https, ssh]
[gitlab-protocol]
[vendor-dir] vendor (C:\Users\Lloyd\AppData\Roaming\Composer/vendor)
[bin-dir] {$vendor-dir}/bin (C:\Users\Lloyd\AppData\Roaming\Composer/vendor/bin)
[cache-dir] C:/Users/Lloyd/AppData/Local/Composer
[data-dir] C:/Users/Lloyd/AppData/Roaming/Composer
[cache-files-dir] {$cache-dir}/files (C:/Users/Lloyd/AppData/Local/Composer/files)
[cache-repo-dir] {$cache-dir}/repo (C:/Users/Lloyd/AppData/Local/Composer/repo)
[cache-vcs-dir] {$cache-dir}/vcs (C:/Users/Lloyd/AppData/Local/Composer/vcs)
[cache-ttl] 15552000
[cache-files-ttl] 15552000
[cache-files-maxsize] 300MiB (314572800)
[cache-read-only] false
[bin-compat] auto
[discard-changes] false
[autoloader-suffix]
[sort-packages] false
[optimize-autoloader] false
[classmap-authoritative] false
[apcu-autoloader] false
[prepend-autoloader] true
[github-domains] [github.com]
[bitbucket-expose-hostname] true
[disable-tls] false
[secure-http] true
[cafile]
[capath]
[github-expose-hostname] true
[gitlab-domains] [gitlab.com]
[store-auths] prompt
[archive-format] tar
[archive-dir] .
[htaccess-protect] true
[use-github-api] true
[lock] true
[platform-check] php-only
[home] C:/Users/Lloyd/AppData/Roaming/Composer

C:\wamp64\www\pmtts>

from yii2-log-reader.

krissss avatar krissss commented on June 10, 2024

Its correct
try this command: composer require kriss/yii2-log-reader --ignore-platform-reqs
or put your composer.json which in path your composer exec (may be in C:\wamp64\www\pmtts>)

from yii2-log-reader.

lloyd966 avatar lloyd966 commented on June 10, 2024

Hi

I get an error when i try the following

C:\wamp64\www\pmtts>composer require kriss/yii2-log-reader --ignore-platform-reqs

In PackageDiscoveryTrait.php line 375:

Could not find a matching version of package kriss/yii2-log-reader. Check the package spelling, your version constraint and that the package is available in a stability w
hich matches your minimum-stability (dev).

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [...]

C:\wamp64\www\pmtts>

Sorry for all the questions, but your help is greatly appreciated.

from yii2-log-reader.

krissss avatar krissss commented on June 10, 2024

put your composer.json which in path your composer exec (may be in C:\wamp64\www\pmtts>)

from yii2-log-reader.

lloyd966 avatar lloyd966 commented on June 10, 2024

I have the following composer files in two locations as follows:

C:\wamp64\www\pmtts
composer.json 5kb
composer.lock 432kb

C:
composer.json 1kb
composer.lock 23kb

Just to clarify are you suggesting that I copy the 2 composer files from C:\wamp64\www\pmtts and overwrite the 2 composer files in C:\ ?

from yii2-log-reader.

krissss avatar krissss commented on June 10, 2024

no
I think you should learn composer usage first...
I cant help you

from yii2-log-reader.

lloyd966 avatar lloyd966 commented on June 10, 2024

I understand.

Thank you for all your help.

from yii2-log-reader.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.