Npm run dev reported an error’ DEBUG’ which is not an internal or external command, nor is it a runnable program or batch file. What should I do?

  node.js, question

The project was built using webpack.

Json is configured as follows

“dev”: “DEBUG=true node server.js”,

Try it:

"dev": "set DEBUG=true node server.js",