四、eggjs学习记录

如果声明generator函数的时候报错,有可能是参数写的有问题

 参数直接写成一个变量就好了

* run(argv) {
    console.log(argv);
    console.log(path.join(process.cwd(), 'node_modules', 'egg-bin/bin/egg-bin.js'));
    yield super.helper.forkNode(path.join(process.cwd(), 'node_modules', 'egg-bin/bin/egg-bin.js'), [ 'start' ]);
  }
原文地址:https://www.cnblogs.com/hellolol/p/11533207.html