Javascript Windows上的Yahoo fluxible“未定义外壳”

Javascript Windows上的Yahoo fluxible“未定义外壳”,javascript,reactjs,flux,reactjs-flux,fluxible,Javascript,Reactjs,Flux,Reactjs Flux,Fluxible,fluxible生成的应用程序中的以下行 给出错误“未定义外壳” shell.env.PORT = shell.env.PORT || 3001; shell.exec('"./node_modules/.bin/nodemon" start.js -e js,jsx', function () {}); 是的 更改后,服务器启动时没有出现错误,但更改后仍无法自动重新启动。我做错了什么?看起来像是生成器中的一个bug,我将修复它 在代码中,将第一行更改为var shell=require'sh

fluxible生成的应用程序中的以下行 给出错误“未定义外壳”

shell.env.PORT = shell.env.PORT || 3001;
shell.exec('"./node_modules/.bin/nodemon" start.js -e js,jsx', function () {});
是的


更改后,服务器启动时没有出现错误,但更改后仍无法自动重新启动。我做错了什么?

看起来像是生成器中的一个bug,我将修复它

在代码中,将第一行更改为var shell=require'shelljs';看看这是否能帮你解决问题

var shell = require('child_process');

.listen(3000, function () {
    shell.env = process.env;
    shell.env.port = 3001;
    shell.exec('"./node_modules/.bin/nodemon" start.js -e js,jsx', function () {});
    console.log('Webpack Dev Server listening on port 3000');
});