install.js 256 字节 原文件 审查 历史 永久链接 1 2 3 4 5 6 7 if (process.platform === 'darwin') { var spawn = require('child_process').spawn; var args = ['install', '--fallback-to-build']; var options = {stdio: 'inherit'}; var child = spawn('node-pre-gyp', args, options); child.on('close', process.exit); }