Fix broken ‘node-gyp’ issue for Mac OS
<p>This issue is usually caused because a <code>node-gyp</code> config file called <code>common.gypi</code> is not set up for your current Mac OS version.</p>
<p>It often times comes accompanied with an error message like:</p>
<pre>
fatal error: 'utility' file not found
#include <utility></pre>
<p>Another usual fix is to reinstall XCode’s command-line tools with:</p>
<pre>
$ xcode-select --install</pre>
<p>Just for context, this issue usually happens after upgrading your OS of if you use <code>nvm</code> and are using a newly installed <strong>NodeJs</strong> version.</p>
<p>If your project has any complex dependencies that rely heavily on native libraries this solution might not be for you.</p>
<p>If the most complex <code>node-gyp</code>-related dependency you have in your project is something common like <code>node-sass</code> then this is usually the fix you need.</p>
<p>You’ll need to find and edit the <code>common.gypi</code> file for the <strong>NodeJs</strong> version you’re using. You’ll usually find it in a path like:</p>
<p><a href="https://medium.com/macoclock/fix-broken-node-gyp-issue-for-mac-os-596e4a8bcffd"><strong>Read More</strong></a></p>