airpartners / aq-web-client

Web app for end-users.
https://airpartners-ade.web.app/
2 stars 0 forks source link

Update package.json to work on windows or unix... port issue #43

Closed Inkering closed 3 years ago

wFairmanOlin commented 3 years ago

when running npm start, this popped up:

"'PORT' is not recognized as an internal or external command, operable program or batch file."

Had to change modify the following line in package.json prev: "start": "PORT=3333 && react-scripts start", new: "start": "set PORT=3333 && react-scripts start",

Inkering commented 3 years ago

the set keyword also works on Mac, need to test on linux

anushadatar commented 3 years ago

Assigning myself to this to try it on Linux

Inkering commented 3 years ago

https://stackoverflow.com/questions/40714583/how-to-specify-a-port-to-run-a-create-react-app-based-project more info on this peculiarity

Inkering commented 3 years ago

Particularly this solution looks ideal

Screen Shot 2021-03-02 at 10 01 52 PM
anushadatar commented 3 years ago

2 months later finally added one line of code :)