Laravel-mix: V4.1.3 always wants to install additional dependencies

Created on 5 Sep 2019  路  8Comments  路  Source: JeffreyWay/laravel-mix

  • Laravel Mix Version: 4.1.3
  • Node Version (node -v): 10.15.3
  • NPM Version (npm -v): 6.9.0
  • OS: ubuntu 18.04.2 (laravel/homestead)

Description:

Since version 4.1.3, when calling npm run dev, laravel mix always wants to install additional dependencies, without telling which ones. It finishes, but it's en endless loop.

output:

vagrant@fotogecko:~/code$ npm run dev

> @ dev /home/vagrant/code
> npm run development


> @ development /home/vagrant/code
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

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

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

npm WARN [email protected] requires a peer of webpack@^1 || ^2 || ^3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/sass/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

        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

npm WARN [email protected] requires a peer of webpack@^1 || ^2 || ^3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/sass/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

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

        Finished. Please run Mix again.

Steps To Reproduce:

npm run dev

Most helpful comment

This must have been related to the collection rewrite. Patched just now in 4.1.4. Apologies!

All 8 comments

Same problem

Same issue here. Also with run dev and watch. Probably caused by this commit from July 16th. Using 4.1.2 for now.

Same

here as well

Quadruple this

It started this morning for me as well but I'm _not_ on the latest version. Here's my versions:

node - 10.15.3
npm - 6.4.1
laravel-mix - 4.0.7
osx - 10.14.3

I even tried making my webpack.mix.js file as minimal as possible but still get the same issues.

This must have been related to the collection rewrite. Patched just now in 4.1.4. Apologies!

thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wendt88 picture wendt88  路  3Comments

hasnatbabur picture hasnatbabur  路  3Comments

Cheddam picture Cheddam  路  3Comments

rderimay picture rderimay  路  3Comments

jpmurray picture jpmurray  路  3Comments