'PORT' is not recognized as an internal or external command,
joevotto opened this issue · comments
Hello, I am attempting to run your github repo version, with my own API Key inserted. I installed the node modules, and when I go to run yarn api I get the error 'PORT' is not recognized as an internal or external command, operable program or batch file. How can I fix this? Thanks
Looks like you are trying to use it on Windows. Place "SET" before "PORT=3000 nodemon server.js" in package.json i.e. "SET PORT=3000 nodemon server.js". Similarly for watch_Dev.
Change to "start": "react-scripts start", it work for me
"start": "set PORT=4000 && react-scripts start",
in package.json write "start": "react-scripts start", instead of this one "start": "PORT=3001 react-scripts start",
in package.json write "start": "react-scripts start", instead of this one "start": "PORT=3001 react-scripts start",
thank you #faizaddnh for this brief explanation works for me
"start": "set PORT=4000 && react-scripts start"