In Ubuntu it's quite simple; I can run the application using:
$ NODE_ENV=production node myapp/app.js
However, this doesn't work on Windows. Is there a configuration file where I can set the attribute?
It would be ideal if you could set parameters on the same line as your call to start Node.js on Windows. Look at the following and run it exactly as stated:
You have these two options:
At the command line:
set NODE_ENV=production&&npm start
set NODE_ENV=production&&node index.js
The trick for it to work on Windows is you need to remove the whitespace before and after the "&&". Configured your package.json file with start_windows (see below) below. Then Run "npm run start_windows" at the command line.
"start": "node index.js"
"start_windows": "set NODE_ENV=production&&node index.js"
Hope it helps!!
npm start --prefix path/to/your/app
& inside ...READ MORE
You can do the following to ...READ MORE
You can use request, I just found ...READ MORE
Since you've mentioned Express.js in your ...READ MORE
In the error callback or $.ajax you have three ...READ MORE
If your script is called myScript.js ...READ MORE
Try this code :
// Create an ...READ MORE
Use node-inspector from any browser supporting WebSocket. Breakpoints, ...READ MORE
To update NPM, this worked for ...READ MORE
JSON.stringify's third parameter defines white-space insertion ...READ MORE
Already have an account? Sign in.