choojs / create-choo-app

🚞 - create a fresh choo application
MIT License
181 stars 36 forks source link

NODE_ENV doesn't work on windows #20

Open yoshuawuyts opened 7 years ago

yoshuawuyts commented 7 years ago
λ npm start

> choo-electon-app-01@1.0.0 start D:\gitwork\choo-electon-app-01
> NODE_ENV=development electron main.js

'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.

from create-choo-electron, but will also apply here

ungoldman commented 7 years ago

I recommend cross-env as a good cross platform way to set env vars. Alternately we can provide instructions for both platforms.

yoshuawuyts commented 7 years ago

@ungoldman I think cross-env would make sense to use here