DWQA QuestionsCategory: ProgramNPM scripts can't execute node? Env = production
Then? asked 2 weeks ago

package.json

"scripts": {
    "start": "export NODE_ENV=production node ./server.js"
  }

Error prompt

‘node’env’ is not an internal or external command, or a runnable program or batch file.

win7

1 Answers
Childe answered 2 weeks ago

Under Windows yessetx NODE_ENV production

Then? replied 2 weeks ago

Thank you.set NODE_ENV=dev && node ./server.jsThat’s it