title: TypeError: Cannot destructure property `stat` of 'undefined' or 'null'
body: <p>I am getting a TypeError when running npm install -g react-native project on mac.</p>
  <p>full error</p>
  <p>TypeError: Cannot destructure property <code>stat</code> of 'undefined' or 'null'.
  at Object. (/usr/local/lib/node_modules/npm/node_modules/@npmcli/node-gyp/lib/index.js:2:29)</p>