I am trying to install voyager package in Laravel application (The project is created on the WAPP Stack in Alibaba Cloud ECS instance) it throws me a like it is unable to install the package, Please enable the extensions in the php.ini but it is already enabled. Please help me to resolve this... Thanks in advance...
Asked
Active
Viewed 2,099 times
0
-
1Hi I think you need to enable the fileinfo PHP extension. – Ermac Nov 04 '18 at 17:43
1 Answers
1
If you think the error is a false-positive and you are sure the fileinfo
PHP extension is really both, installed and enabled, you can force the composer installation in two ways:
- You can use the
--ignore-platform-reqs
option when callingcomposer install
. It will ignore dependencies that start withext-
, meaning it will not check if they are resolvable. It will also not check the available PHP version. You can simulate an environment to composer by adding a special
platform
configuration in yourcomposer.json
under theconfig
key:{ ... other composer settings ... "config": { "platform": { "ext-fileinfo": "1.0" } } }

Namoshek
- 6,394
- 2
- 19
- 31