{"size": 430, "ext": "js", "max_stars_repo_path": "test/test-spawn.js", "max_stars_repo_name": "linshenghao/zhwl-cli", "max_stars_repo_stars_event_min_datetime": "2018-05-15T07:12:48.000Z", "max_stars_repo_stars_event_max_datetime": "2018-09-09T03:27:36.000Z", "max_issues_repo_path": "test/test-spawn.js", "max_issues_repo_name": "linshenghao/zhwl-cli", "max_issues_repo_issues_event_min_datetime": "2018-12-03T12:09:24.000Z", "max_issues_repo_issues_event_max_datetime": "2018-12-03T12:09:24.000Z", "max_forks_repo_path": "test/test-spawn.js", "max_forks_repo_name": "linshenghao/zhwl-cli", "max_forks_repo_forks_event_min_datetime": "2018-05-15T09:52:53.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-28T11:46:42.000Z"}
{"max_stars_count": 19, "max_issues_count": 1, "max_forks_count": 4, "avg_line_length": 26.875, "max_line_length": 70, "alphanum_fraction": 0.6}
const process = require('process');
const spawn = require('react-dev-utils/crossSpawn');


console.log(`Starting directory: ${process.cwd()}`);
try {
    process.chdir('test/tmp');
    console.log(`New directory: ${process.cwd()}`);
    const proc = spawn.sync('npm', ['install'], { stdio: 'inherit' });
    if (proc.status === 0) {
        console.log('执行成功');
    }
} catch (err) {
    console.error(`chdir: ${err}`);
}
return ;