Next.js: How to run production application ?

Created on 1 May 2017  ·  3Comments  ·  Source: vercel/next.js

Too many tutorial and example package use command "NODE_ENV=production node server.js" but i alway got something like
```npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start" npm ERR! node v7.9.0 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start:NODE_ENV=production node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'NODE_ENV=production node server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the with-react-intl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=production node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs with-react-intl
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls with-react-intl
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\nhanc\AppData\Roaming\npm-cache_logs\2017-05-01T16_49_12_860Z-debug.log

c:\Nhan\node\now\with-react-intl>````
I dont know node v7.9.0 is really old ? or i do something wrong ? in this case i run the example with react intl.

Most helpful comment

All 3 comments

@arunoda that page is asking for a login. Is that the right url?

I just tried it, yes it is.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

renatorib picture renatorib  ·  3Comments

knipferrc picture knipferrc  ·  3Comments

rauchg picture rauchg  ·  3Comments

YarivGilad picture YarivGilad  ·  3Comments

swrdfish picture swrdfish  ·  3Comments