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.

Laravel-Mix npm run dev syntax error!

See original GitHub issue

debuglog.txt.txt

@ dev C:\xampp\htdocs\projects\melungtse cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

undefined:1

SyntaxError: Unexpected token

npm ERR! Windows_NT 10.0.14393 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “dev” npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! @ dev: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script ‘cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\xampp\htdocs\projects\melungtse\npm-debug.log

And my NODE is 6.10.3 NPM is 3.10.10 OS Windows 10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
spearmootzcommented, May 10, 2017

@ravisharmaa try deleting the mix-manifest.json file from /public and report if it fixed it

0reactions
andreworkscommented, Aug 10, 2017

@spearmootz thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel Mix npm run dev error · Issue #1072 - GitHub
When I'm running the command npm run dev , I'm getting the following output with an error: root@gra2-status:/var/www/webinterface# npm run ...
Read more >
How to fix Laravel-mix error on initial 'npm run dev': "SyntaxError
Steps To Reproduce: laravel new www-teste (with or without --dev); cd www-teste; npm install; npm run {dev|watch| ...
Read more >
Laravel mix npm run dev on linux produce SyntaxError
Laravel mix npm run dev on linux produce SyntaxError: missing ) after argument list. I can't use npm run dev|prod|watch on my staging...
Read more >
How To Fix “Laravel Mix NPM run dev error” - YouTube
This video will help you to solve the annoying “ Laravel Mix NPM run dev error ” that you probably have seen before...
Read more >
npm run dev is showing error on existing Laravel Project
Error [ERR_REQUIRE_ESM]: require() of ES Module [laravelApp]/node_modules/del/index.js from [laravelApp]/webpack.mix.js not supported. Instead change the ...
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