Skip to content

Build on windows #5

@renannobile

Description

@renannobile

Hey there, how can I run npm run prod on Windows?

I'm having some trouble trying to run prod, here's the output:

$ npm run prod > [email protected] prod C:\Code\portal > npm run webpack:prod && npm run copy:assets && npm run copy:manifest > [email protected] webpack:prod C:\Code\portal > NODE_ENV=production webpack --config ./config/webpack.config.prod.babel.js --env=production 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] webpack:prod: NODE_ENV=production webpack --config ./config/webpack.config.prod.babel.js --env=production npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] webpack:prod script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\r.lourenconi.nobile\AppData\Roaming\npm-cache\_logs\2018-09-03T22_18_42_746Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] prod:npm run webpack:prod && npm run copy:assets && npm run copy:manifest npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] prod script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\r.lourenconi.nobile\AppData\Roaming\npm-cache\_logs\2018-09-03T22_18_42_794Z-debug.log

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions