While trying to setup a new Laravel 8.x projects, We encountered problem while doing NPM install.
Error:
Don't worry, it's natural I'm here to help you to fix this kind of error.
Solution:
Just run the following command, to clear you local npm cache folder.
That kind of error, happened when your network is not stable and cannot connect to NPM servers properly. Those download resources is not complete which give an invalid json format.
Now, try to run npm install
it should work by now.
Voila!!!
I hope you enjoy our tutorial, Let me know incase you encounter any error I would love to answer that. Don't forget to subscribe to my Youtube Channel at Let's Code Pare - Youtube Channel