Reputation: 60
I work with Laravel and I try to do something with Vue.js but I can't see it up.
First of all I install Node.js and npm. Now I'm trying to user 'npm run watch'. To see if my js code runs on my laravel project.
But, when I type 'npm run watch' in my cmd. It's like this:
What should I do ?
Thanks !
Upvotes: 0
Views: 713
Reputation: 10114
It looks like your version of Laravel Mix is out-of-date; there was a bug fixed in March 2017 that addressed this issue on newer versions of webpack.
You can update your version of Laravel Mix by either doing this:
npm uninstall laravel-mix && npm install --save-dev laravel-mix
or updating your package.json
file to change the version for laravel-mix
...
"devDependencies": {
...
"laravel-mix": "^0.11.4",
...
}
...
After changing the version number, run npm update
.
Upvotes: 2