0

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:

enter image description here

What should I do ?

Thanks !

3
  • 1
    This might address your issue, but what version of laravel mix do you have? (yarn info laravel-mix version if you have yarn installed, npm list laravel-mix otherwise) Commented May 17, 2017 at 19:47
  • [email protected] Commented May 17, 2017 at 19:50
  • I solve it thank you @ChrisForrence Commented May 17, 2017 at 19:58

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.