'NPM gives error when using Laravel Mix node module

Laravel Mix has been installed the following way.

npm install laravel-mix@latest

But when running npm run production (happens with npm run dev too), I get the following error. I have deleted my node modules folder again and again and tried to install the laravel mix command by using the npm install laravel-mix --save command as well, same results, however.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source