title: NODE_ENV is not recognised as an internal or external command
body: <p>I am developing in node.js and wanted to take into account both production and development environment. I found out that setting NODE_ENV while running the node.js server does the job. However when I try to set it in package.json script it gives me the error:</p>
  
  <blockquote>
    <p>NODE_ENV is not recognised as an internal or external command</p>
  </blockquote>
  
  <p>Below is my package.json</p>
  
  <pre><code>{
    "name": "NODEAPT",
    "version": "0.0.0",
    "private": true,
    "scripts": {
      "start": "NODE_ENV=development node ./bin/server",
      "qa2": "NODE_ENV=qa2  node ./bin/server",
      "prod": "NODE_ENV=production node ./bin/server"
    },
    "dependencies": {
      "body-parser": "~1.15.1",
      "cookie-parser": "~1.4.3",
      "debug": "~2.2.0",
      "express": "~4.13.4",
      "fs": "0.0.1-security",
      "jade": "~1.11.0",
      "morgan": "~1.7.0",
      "oracledb": "^1.11.0",
      "path": "^0.12.7",
      "serve-favicon": "~2.3.0"
    }
  }
  </code></pre>
  
  <p>I run my node server as: <code>npm run qa2</code> for example.</p>
  
  <p>I don't know what I am doing wrong. Any help is appreciated</p>