question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on npm run dev with Laravel Project

See original GitHub issue

Hi,

I get following error when i am try to run npm run dev command on windows power-shell

@ development C:\Users\Praneeth Gamage\Desktop\Laravel_Projects\posty mix

[webpack-cli] Running multiple commands at the same time is not possible [webpack-cli] Found commands: ‘bundle’, ‘Gamage\Desktop\Laravel_Projects\posty\node_modules\laravel-mix\setup\webpack.config.js’ [webpack-cli] Run ‘webpack --help’ to see available commands and options npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @ development: mix npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Praneeth Gamage\AppData\Roaming\npm-cache_logs\2021-01-10T12_30_36_179Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @ dev: npm run development npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Praneeth Gamage\AppData\Roaming\npm-cache_logs\2021-01-10T12_30_36_230Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:33

github_iconTop GitHub Comments

21reactions
adrian250997commented, Jan 11, 2021

I already solved it, in my case, it was the blank spaces in the path to the project

5reactions
adrian250997commented, Jan 11, 2021

@fikrisuheri verify that this path is complete, if it is cut it is because of the blank spaces, the solution is to move the project from place to a path that does not have spaces. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

In laravel npm run dev errors: - Stack Overflow
Solution that worked for me : I had unstalled npm which was installed globally and reinstalled the same globally and "npm run dev"...
Read more >
Error on npm run dev with Laravel Project · Issue #2761 - GitHub
Hi, I get following error when i am try to run npm run dev command on windows power-shell @ development C:\Users\Praneeth ...
Read more >
Error on npm install & npm run dev in new Laravel project
Hi from Spain laravelers, Can anybody give me a clue about why I´m getting this error when I run npm install & npm...
Read more >
npm run dev is showing error on existing Laravel Project
npm run dev is showing error on existing Laravel Project ... Hello, I did everything described here: https://preview.keenthemes.com/html/metronic/docs/getting- ...
Read more >
Why is npm run dev not working in Laravel? - Quora
It means in your “package.json” (in the folder in which you run “npm run build”), there's NO “build” script. A quick check: run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found