Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

graceful-fs warning when running Grunt task

Tags:

I'm getting this warning when running one of my grunt tasks:

Warning: (node:2771) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. 

Does somebody know how to get rid of that? And how to find it's source? My nodejs version is 6.0.0.

like image 387
Robert Kusznier Avatar asked Apr 29 '16 11:04

Robert Kusznier


2 Answers

Your best option right now is to downgrade to the latest Node 5.x until that dependency has been updated.

Suggest that you read: DON'T rush to upgrade to Node v6 and Breaking changes between v5 and v6.

We all want to be on the latest and greatest - myself included. A great way to do this is to use something like n or nvm to quickly flip between Node versions so that we can use Node v6 on some projects and older versions on other projects.

The other thing that I do is I put a package like Node Version Checker in my project and use it in both the tests and the application to make sure that I've changed to the expected version of Node when I start the project or the tests as we often forget to flip to the right version of Node if we have multiple versions on multiple projects.

like image 149
Guy Avatar answered Oct 24 '22 23:10

Guy


If you're using homebrew here is how you can downgrade to v5.11.0

brew tap homebrew/versions brew unlink node brew install homebrew/versions/node5 

And you're good to go.

like image 31
ReedD Avatar answered Oct 24 '22 22:10

ReedD