How does mac xos set the Node environment variable to production?

  node.js, question

I am using amt-starter-kit for development, and executing npm run build command reported an error. I did not set NODE_ENV=production. I searched Baidu and spent the whole morning without success. Ask the great god for advice! !

Let’s do it first.

export NODE_ENV=production

And then execute your orders?