hidehalo / nanoid-php

PHP implementation of Nanoid, secure URL-friendly unique ID generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Composer install error

jenky opened this issue · comments

commented

Detailed description

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Conclusion: don't install hidehalo/nanoid-php 1.1.1
- Conclusion: don't install hidehalo/nanoid-php 1.1.0
- Conclusion: remove paragonie/random_compat v9.99.99
- Installation request for hidehalo/nanoid-php ^1.1 -> satisfiable by hidehalo/nanoid-php[1.1.0, 1.1.0-alpha, 1.1.1].
- Conclusion: don't install paragonie/random_compat v9.99.99
- hidehalo/nanoid-php 1.1.0-alpha requires paragonie/random_compat ^2.0 -> satisfiable by paragonie/random_compat[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.0].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.1].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.10].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.11].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.12].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.13].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.14].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.15].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.16].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.17].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.2].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.3].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.4].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.5].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.6].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.7].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.8].
- Can only install one of: paragonie/random_compat[v9.99.99, v2.0.9].
- Installation request for paragonie/random_compat (locked at v9.99.99) -> satisfiable by paragonie/random_compat[v9.99.99].

Possible implementation

Update the version constraint of paragonie/random_compat to ^2.0|~9.99

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

  • Version used PHP 7.1

@jenky At first, thank you! I am already provide a fix branch for this issue, please pull&checkout this branch's code base. Then:

# exec composer update
$composer update

if that patch can resolve the issue or not, just let me know.

commented

It did fix the issue

$ composer install
    1/11:       http://repo.packagist.org/p/provider-archived$3439e8d30787ecf18fc198a185a4ec17916cf501773e011994acc61866365782.json
    2/11:       http://repo.packagist.org/p/provider-latest$142c803f14694442f874d18772c3a4895570733d7c7eb6f85aadb94eb89cdb5a.json
    3/11:       http://repo.packagist.org/p/provider-2013$56e62a2d5976fc20fa1536748cfd143918a783b139319a4ca9245d980c41eb0a.json
    4/11:       http://repo.packagist.org/p/provider-2014$ce395f6d7588b7a063f8bf53203d4be170cc9a91c69a009aa1bd87dfcd542a6a.json
    5/11:       http://repo.packagist.org/p/provider-2017-10$4e75c3c5352e02ee6f1b3f88f7422edb306e1b90fddc7a3189ccf5cf941a3b4f.json
    6/11:       http://repo.packagist.org/p/provider-2018-07$6c03b17de0e160351679eac989c96c7124d1bdfdfbe9f8e431bb14093f1ab0ca.json
    7/11:       http://repo.packagist.org/p/provider-2018-01$e1eec36d6fc21c3c4b2f78a79a5430b1523b1699277b82f39a3993cf0ddc7cb6.json
    8/11:       http://repo.packagist.org/p/provider-2015$ec2d573c71c5b8323b2a674c74943db114a050926bd64b34cc9180b4841e5470.json
    9/11:       http://repo.packagist.org/p/provider-2017$9b589094e46c01a6a4e86f23622f7480bcb8d83e9d0947b5f52f4ac3e4049440.json
    10/11:      http://repo.packagist.org/p/provider-2018-04$535fdb048f01567f93b4e947c2930b9a06b109157dfcc49bbb18657aa8bc39f9.json
    11/11:      http://repo.packagist.org/p/provider-2016$a1ffaedc3bbf63f863a439bc87d0383e20d11a528c1e51e81b677fce289ed257.json
    Finished: success: 11, skipped: 0, failure: 0, total: 11
Loading composer repositories with package information
Updating dependencies (including require-dev)
    1/1:        https://codeload.github.com/squizlabs/PHP_CodeSniffer/legacy.zip/dcbed1074f8244661eecddfc2a675430d8d33f62
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Package operations: 29 installs, 0 updates, 0 removals
  - Installing paragonie/random_compat (v9.99.99): Loading from cache
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/resource-operations (1.0.0): Loading from cache
  - Installing sebastian/recursion-context (3.0.0): Loading from cache
  - Installing sebastian/object-reflector (1.1.1): Loading from cache
  - Installing sebastian/object-enumerator (3.0.3): Loading from cache
  - Installing sebastian/global-state (2.0.0): Loading from cache
  - Installing sebastian/exporter (3.1.0): Loading from cache
  - Installing sebastian/environment (3.1.0): Loading from cache
  - Installing sebastian/diff (3.0.1): Loading from cache
  - Installing sebastian/comparator (3.0.2): Loading from cache
  - Installing phpunit/php-timer (2.0.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/php-file-iterator (2.0.1): Loading from cache
  - Installing theseer/tokenizer (1.1.0): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
  - Installing phpunit/php-token-stream (3.0.0): Loading from cache
  - Installing phpunit/php-code-coverage (6.0.7): Loading from cache
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing webmozart/assert (1.3.0): Loading from cache
  - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (4.3.0): Loading from cache
  - Installing phpspec/prophecy (1.8.0): Loading from cache
  - Installing phar-io/version (2.0.1): Loading from cache
  - Installing phar-io/manifest (1.0.3): Loading from cache
  - Installing myclabs/deep-copy (1.8.1): Loading from cache
  - Installing phpunit/phpunit (7.3.1): Loading from cache
  - Installing squizlabs/php_codesniffer (2.9.1): Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating autoload files

@jenky Create a new PR for it.