You shouldn’t be using set for env vars in Windows 10/11 this was for CMD which no longer exists. In powershell you should be using $env like: $env:NODE_ENV="production" npm run build
You shouldn’t be using set for env vars in Windows 10/11 this was for CMD which no longer exists. In powershell you should be using $env like: $env:NODE_ENV="production" npm run build