next.js
next.js copied to clipboard
Can not run the command "npm start"
Examples bug report
Example name
custom-server-express
Describe the bug
Can not run the command npm start.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Run
npm start - See an error
'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.
Expected behavior
Next.js app should be started.
System information
- OS: Windows 10 version 1809
- Browser: Chrome version 73
- Version of Next.js: 8.0.4
- Version of Node.js: 10.15.3 (LTS version)
Additional context
- Solved with
SET NODE_ENV=production && node server.js
You can add cross-env to the example.