Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json: start script is not cross-platform friendly #7

Open
apolopena opened this issue Aug 5, 2020 · 0 comments
Open

package.json: start script is not cross-platform friendly #7

apolopena opened this issue Aug 5, 2020 · 0 comments

Comments

@apolopena
Copy link

"start": "PORT=4000 react-scripts start" only works on macOS and some Linux distributions.
As per the issue solved here perhaps either remove the custom port number altogether.

Or use cross-env to allow the project to be started on port 4000 regardless of platform:
run
yarn add -D cross-env

and then change

"start": "PORT=4000 react-scripts start,"

to

start": "cross-env PORT=4000 react-scripts start",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant