bigblueboss's avatar

npm run watch issues

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"

Additional dependencies must be installed. This will only take a moment.

Running: npm install  --save-dev --production=false

Okay, done. The following packages have been installed and saved to your package.json dependencies list:

Additional dependencies must be installed. This will only take a moment.

Running: npm install  --save-dev --production=false

Okay, done. The following packages have been installed and saved to your package.json dependencies list:

Finished. Please run Mix again.

I new up a laravel project. I run npm install. I run npm run dev (or npm run watch), and it keeps saying additional dependencies must be installed, but doesn't install anything.

I tried deleting node_modules folder and reinstalling, that didn't help as well.

Everything was fine yesterday. It just started randomly being a problem today. It is a problem on both laravel 6 and laravel 5.8 by the way.

0 likes
7 replies
danclayton's avatar

I have just made a fresh Laravel 6 installation, and have run into the same problem. I have updated npm and NodeJS but these didn't help. So far I haven't made any code changes.

JeffreyWay's avatar
Level 59

This was fixed earlier today. Can you ensure that you have the latest version of Mix installed? It should be 4.1.4.

4 likes
bigblueboss's avatar

Upgraded laravel mix through npm to 4.1.4 and everything started working as usual. @jeffreyway Thanks.

Laravel new ____ is currently bringing in by default: "laravel-mix": "^4.0.7",

1 like
danclayton's avatar

I used composer create-project to start a new Laravel 6 project, which suggested mix 4.0.7. Running npm update updated laravel-mix to 4.1.4, which solved the problem. Thanks

trondhuso's avatar
npx mix

Additional dependencies must be installed. This will only take a moment.

Running: npm install postcss@^8.3.1 --save-dev --legacy-peer-deps

Finished. Please run Mix again.

After finding this post I ran this command

npx mix --version

6.0.49

Is it something I have done locally, or is this something I do not have any control over.

Please or to participate in this conversation.