How to fix 'fs: re-evaluating native module sources is not supported' - graceful-fs
<p>Recently I've made a switch to Node v.6, and It started creating more and more problems with running normal builds grunt/gulp/webpack</p>

<p>For example:</p>

<pre><code>$ gulp
[14:02:20] Local gulp not found in ~/_Other/angular-2-ts/angular2-seed
[14:02:20] Try running: npm install gulp
</code></pre>

<p>while gulp and all other plugins and modules are installed (and even re-installed via <code>rm -rf node_modules</code>) in /node_modules folder.</p>

<p>Most of those errors have line like</p>

<pre><code>(node:42) 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.
</code></pre>

<p>with 42 as arbitrary number</p>

<p>Like in that issue I've submitted - in angular2-seed repo <a href="https://github.com/mgechev/angular2-seed/issues/902" rel="nofollow noreferrer">https://github.com/mgechev/angular2-seed/issues/902</a></p>

<p>What I've tried to do is downgrade to Node v.5 via n (<a href="https://www.npmjs.com/package/n" rel="nofollow noreferrer">https://www.npmjs.com/package/n</a>) - it worked. Then remove all <code>node_modules</code> folders, then do </p>

<pre><code>npm info graceful-fs -v
3.3.6
</code></pre>

<p>ok, lets upgrade or remove and install new:</p>

<pre><code>npm i graceful-fs@latest
npm i graceful-fs@4.1.4
sudo npm i graceful-fs@4.1.4 -g
</code></pre>

<p>all results in </p>

<pre><code>npm info graceful-fs -v
3.3.6
</code></pre>

<p>So now I am currenlty stuck with <strong>graceful-fs 3.3.6</strong> or even worse in some modules dependances, like</p>

<pre><code>$ angular2-seed
$ npm install

//other lines..
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before 
will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 
as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
</code></pre>

<p>What could be the strategy here:</p>

<ul>
<li>Manually patch all the deps that contain graceful-fs &lt; 4.0.0?</li>
<li>There's some global switch to use specific package version?</li>
<li>Reinstall everything? </li>
</ul>