Laravel-mix: [email protected] is deprecated

Created on 4 Apr 2018  Â·  12Comments  Â·  Source: JeffreyWay/laravel-mix

I'm re-creating this issue, because this problem continues to happen, yet the issues are incorrectly marked as closed. Either re-open the old issue, and close this one, or keep this one open with the others closed.

npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5

  npm WARN prefer global [email protected] should be installed with -g

https://github.com/JeffreyWay/laravel-mix/issues/1401#issuecomment-373482138
https://github.com/JeffreyWay/laravel-mix/issues/1401

stale

Most helpful comment

@BhushanPatil5
You don't know what is going on in this thread.

All 12 comments

What specifically do you want me to do to fix that issue?

Getting same issue with today installation:

yarn add v1.5.1
info No lockfile found.
[1/4] Resolving packages...
warning laravel-mix > img-loader > imagemin-gifsicle > gifsicle > bin-build > download > gulp-decompress > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 749 new dependencies.

This is just a WARNING message, this is very normal in npm ecosystem. And node_modules folder has nothing to do with Laravel on a production server.
Laravel mix is supposed to run on a CI server.

Install gulp globally.

npm install -g gulp

Install gulp locally in the project.

npm install gulp

Add below line in your package.json

"scripts": {
"gulp": "gulp"
}

Run gulp.

npm run gulp

@BhushanPatil5
You don't know what is going on in this thread.

Ref. https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5

...While not as urgent, the plugin author should still transition away from gulp-util.

Does anyone have an idea how to fix this?

Since I was tired of seeing this warning and this issue comes up when I google it, I figured I’d do a dive and see what is actually happening…

Laravel Mix isn’t the problem, it’s with one of it’s dependencies farther down the line. Right now the hold up is with the gifsicle dependency as it currently requires an older version of bin-build that still references the older version of download. One of the contributors of gifsicle commented that they want/need to update their dependency of bin-wrapper before they will tag a release that would fix this error (https://github.com/imagemin/gifsicle-bin/issues/90). So unfortunately, this warning isn't something a Mix maintainer/contributor/user can fix themselves.

TLDR; Not an issue with Mix and you can't fix it. Just ignore the warning as it doesn’t break anything.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

It's 2020. Any solution to this?

npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines

it means that the version you have is deprecated, run
npm ls gulp-util
to see what are the plug-ins that are affecting your gulp-util.
mine was gulp-sass which version was 3.1.0. I updated the gulp-sass version to the recommended version and the error disappeared.
read this article:
https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hasnatbabur picture hasnatbabur  Â·  3Comments

RomainGoncalves picture RomainGoncalves  Â·  3Comments

nezaboravi picture nezaboravi  Â·  3Comments

kpilard picture kpilard  Â·  3Comments

rderimay picture rderimay  Â·  3Comments