install.js 291 B

1234567
  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. }