To enable extensions, verify that they are enabled in your .ini files:- C:\xampp\php\php.ini

Posted by

Error

Problem 1
    - lcobucci/jwt[4.3.0, 5.0.0, ..., 5.1.0] require ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension. 
    - laravel/passport v11.9.0 requires lcobucci/jwt ^4.3|^5.0 -> satisfiable by lcobucci/jwt[4.3.0, 5.0.0, 5.1.0].
    - Root composer.json requires laravel/passport 11.9.0 -> satisfiable by laravel/passport[v11.9.0].

To enable extensions, verify that they are enabled in your .ini files:
    - C:\xampp\php\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-sodium` to temporarily ignore these required extensions. 

Solution:

For me, I just follow this steps.

Step 1:

At first, You need to install/activate sodium goto D:\xampp\php\ and open file php.ini.

Step 2: Now search for sodium

Step 3: You will see ;extension=sodium

Step 4: Remove semi colon ; and save file.

Step 5: Now reload apache, and run the composer again.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x