install.js 291B

12345678
  1. if (process.platform === 'darwin') {
  2. var spawn = require('child_process').spawn;
  3. var args = ['install', '--fallback-to-build'];
  4. var options = {stdio: 'inherit'};
  5. var child = spawn(require.resolve('node-pre-gyp/bin/node-pre-gyp'), args, options);
  6. child.on('close', process.exit);
  7. }