How to configure the script with the label npm start NODE_ENV=development?

Good afternoon.
How can I correctly configure script with npm start, so much so that it was stated NODE_ENV=development?

Tried to do so. Displays an error.
"start": "NODE_ENV=development node app.js"

Tried to do this:
"start": "SET NODE_ENV=development && nodemon app.js"

But in this case the logger does not work:
var winston = require('winston'),
 ENV = process.env.NODE_ENV; // app.get('env');
 console.log(ENV); //development

function getLogger(module) {
 var path = module.filename.split('/').slice(-2).join('/');

 return new winston.Logger({
 transports: [
 new winston.transports.Console({
 colorize: true,
 level: (ENV == 'development') ? 'debug' : 'error',
 label: path

module.exports = getLogger;

http.createServer(app).listen(app.get('port'), function() {'Express server listening on port' + app.get('port'));

If you run through the console NODE_ENV=development nodemon app.js
The log is displayed. And in the case above, the log is not displayed though process.env.Displays NODE_ENV development
August 23rd 19 at 10:42
2 answers
August 23rd 19 at 10:44
Complement that if you want cross platform, then use cross-env, like this: cross-env NODE_ENV=production nodemon app.js
August 23rd 19 at 10:46
He figured out, can someone come in handy.
It was the fact that:
set NODE_ENV=development && nodemon app.js

The value of the process.env.NODE_ENV is "development" (with a space).
It would therefore be correct to do so:
set NODE_ENV=development&& nodemon app.js

Find more questions by tags Express.jsNode.js