I am trying to run npm build on an old project I worked on months ago. It worked before after I ran
npm install -g win-node-env
Now I have formatted my machine but still getting this error
'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.
Here is my package.json:
"scripts": {
"start": "NODE_ENV=development webpack --watch --progress --hide-modules --mode development --config webpack.config.js",
"preview": "NODE_ENV=production webpack --watch --progress --hide-modules --mode production --config webpack.config.js",
"build": "NODE_ENV=production webpack --mode production --config webpack.config.js"
}
This scrip worked before but now I cannot see what I am doing wrong. Any reasonable suggestion would be great!
FYI, I am using a Windows machine