Search code examples
phplaravelnpmlaravel-mix

Laravel mix npm run dev failed to parse package.json


I am following these series https://laracasts.com/series/whats-new-in-laravel-5-1/episodes/4, which is about Laravel 5.1 testing facilities, however I had to jump to this one https://laracasts.com/series/whats-new-in-laravel-5-4/episodes/3 because gulpfile.js no longer exists in Laravel, because it uses mix now, but when I try to run the cmd npm run dev I get the following error: enter image description here

enter image description here


Solution

  • Try to remove the last , after the "tdd": "...webpack.config.js" inside your devDependencies