wwwebman / gulp-webpack-starter

Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get an awesome development experience!
MIT License
215 stars 40 forks source link

[GWS 14] 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file. #26

Closed ukozdan closed 6 years ago

ukozdan commented 6 years ago

Running on Windows 10:

yarn build
yarn run v1.3.2
$ NODE_ENV=production gulp
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Some suggest it may be a cross platform syntax issue.

wwwebman commented 6 years ago

@ukozdan, Hi! Did you find any solution to fix this bug?

ukozdan commented 6 years ago

@wwwebman No, the link I included suggested it may be because the line:

$ NODE_ENV=production gulp

is Linux, but not Windows friendly. I don't know if changing it to the following would cause more issues:

$ NODE_ENV=production
gulp
wwwebman commented 6 years ago

@ukozdan fixed: https://github.com/wwwebman/gulp-webpack-starter/commit/66d3df0d2970faef50d694b30e253ba0ea93da36

Thank you!

ukozdan commented 6 years ago

Cool