So I cloned a new Laravel project but its version was higher than my PHP version i.e. 7.2. I was running 7.1. So for that, I downloaded a new Xampp of version 7.3.*. For this, I usually rename the main XAMPP file in the Application folder by adding the version at the end so that the new XAMPP can be installed smoothly.
But then when I tried to run Composer Install, this error popped.
[ErrorException] preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory or set pcre.jit=0
This error generally appears due to version differences. The solution to this is to add
pcre.jit=0
this line in the PHP.ini file.
On XAMPP this file is usually located inside etc Folder.
This ignores the error and smoothly runs the installation.
IF you don’t know where you can locate the php.ini file in XAMPP, go to this link
https://stackoverflow.com/questions/6185319/how-to-locate-the-php-ini-file-xampp
magnificent points altogether, you simply gained a new reader. What would you recommend about your post that you made a few days ago? Any positive?