composer update を行うと、
要求されたPHPエクステンションext-json ^ 1.7ですが、
インストールされているバージョンが間違っています(1.6.0)。
PHPのjson拡張機能をインストールまたは有効にします。
というエラーになります。
[vagrant@localhost diva]$ composer --dev update
You are using the deprecated option "dev". Dev packages are installed by default now.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-json ^1.7 has the wrong version (1.6.0) installed. Install or enable PHP's json extension.
試した事。
1)現在インストールされている、json のバージョンは?
[vagrant@localhost diva]$ yum list installed | grep json
libfastjson.x86_64 0.99.4-2.el7 @anaconda
php-json.x86_64 7.2.16-1.el7.remi @remi-php72
php72-php-json.x86_64 7.2.12-1.el7.remi @remi-safe
2)composer install を行うと。(メッセージが表示されます。)
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
解決したい事。
■ どこで、1.6.0 と判断しているのでしょうか?
どのようにして、1.7へアップデートすれば良いのでしょうか?
環境は以下を使用しています。
■centos
[vagrant@localhost diva]$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
■php
[vagrant@localhost diva]$ php -v
PHP 7.2.16 (cli) (built: Mar 5 2019 14:45:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.16, Copyright (c) 1999-2018, by Zend Technologies
あなたの回答
tips
プレビュー