While trying to execute the following command using spawn
let deploy = spawn('npm', ['run', `${project}:${end}:dev`], { stdio: 'inherit' })
And getting the following error
npm ERR! Missing script: "realstate:frontend:dev"
When I run the command without vars, It runs perfectly. Any idea why spawn doesn’t run the variables?