'BUILD_PATH' is not recognized as an internal or external command, operable program or batch file

In my react package.json file I am trying to set the build path to my node backend folder.

"scripts": {
"start": "react-scripts start",
"build": "BUILD_PATH=../server/public react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}

But getting error

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source