Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

"npm run dev" display error message the first time

I am currently taking a laravel 8 framework class and each time I install a laravel/ui (Bootstrap 4, TALL stack, etc) I get an error after running:

npm install && npm run dev

This is fixed by running the command again the second time, without having to troubleshoot or change anything.
I don’t have an issue with the error but as a freshman and a curious coder, I find myself wondering about what causes the error on the first run.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Here is an image of the error that stops the command the first time.

Error Displayed during the first npm command run

Can someone please explain what is it that happens the first time the commands are executed that causes the error to stop the execution of the command.

>Solution :

Did you read the error message?

It says that it installed an additional dependency, and to run again.

That’s why it works on the second time.

If you already had "resolve-url-loader": "^4.0.0" in your "devDependencies", chances are Mix wouldn’t have needed the extra step.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading