Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run production application ? #1838

Closed
nhanco opened this issue May 1, 2017 · 3 comments
Closed

How to run production application ? #1838

nhanco opened this issue May 1, 2017 · 3 comments

Comments

@nhanco
Copy link

nhanco commented May 1, 2017

Too many tutorial and example package use command "NODE_ENV=production node server.js" but i alway got something like

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! with-react-intl@1.0.0 start: `NODE_ENV=production node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the with-react-intl@1.0.0 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.
@arunoda
Copy link
Contributor

arunoda commented May 1, 2017

Follow the guide here: https://learnnextjs.com/basics/deploying-a-nextjs-app

@arunoda arunoda closed this as completed May 1, 2017
@bronson
Copy link

bronson commented Jul 12, 2017

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

@apajkic
Copy link

apajkic commented Jul 12, 2017

I just tried it, yes it is.

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants