npm WARN deprecated [email protected]: graceful-fs version 3

TL;DR: Just file bugs if necessary, and ignore the deprecation warnings for now. Unless it's throwing errors, it's not your problem.


Most likely, it's indirectly depending on an out-of-date version of graceful-fs that depends on Node's internal modules (even though it shouldn't). That module by necessity does depend heavily on Node's implementation details, but 4.x was written to be less brittle in that respect. Few things changed in the API between 3.x and 4.x.

For what it's worth, one count a couple weeks ago had that module as the tenth most downloaded on npm. I don't see that changing much. And because of the large use share of that module (npm itself indirectly depends on an outdated version), Node has already instated a temporary fix where they're trying to get people off of the internal modules.

So don't worry unless you get errors originating from it. I generally ignore those deprecation warnings, as they're already very well known.


npm install -g graceful-fs graceful-fs@latest works for me.

This installs the latest version of graceful-fs!!


You don't need to worry about it and there's nothing wrong with the dependency as it only affects development. The gulp team is aware of the issue.

We are aware of the graceful-fs deprecation warning upon install of gulp 3.x.

This is due to: 1. our graceful-fs devDependency 2. the vinyl-fs dependency

Both of which we are unable to upgrade due to API breaking changes.

There is nothing wrong with the dependency, especially since it is only used in development. We will be updating or removing it in gulp 4 and the message will go away.

https://github.com/gulpjs/gulp/issues/1571


I agree with all the comments about that it doesn't affect it at all. But in case that you want to upgrade.

First, check which versions do you already have of graceful

$ npm ls graceful-fs

and if you don't have the latest version of it then install it

$ sudo npm install -g graceful-fs graceful-fs@latest-version