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

Yarn Start doesn't work with error : 'PORT' is not recognized as an internal or external command #19

Open
lepris opened this issue Dec 22, 2021 · 1 comment

Comments

@lepris
Copy link

lepris commented Dec 22, 2021

Steps to reproduce:

  1. Clone the repo
  2. run Yarn (or npm )
  3. run yarn start

Actual result:
yarn run v1.22.17 $ PORT=4000 react-scripts start 'PORT' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected result
App starting

My workaround

was to edit package.json:
"start": "react-scripts start",
and updated React :
"dependencies": { "@rehooks/component-size": "^1.0.3", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "levenshtein": "^1.0.5", "prettier": "^1.19.1", "react": "17.0.2", "react-confetti": "^5.0.1", "react-dom": "17.0.2", "react-modal": "^3.11.1", "react-scripts": "3.3.0", "resize-observer-polyfill": "^1.5.1", "uuid": "^3.3.3" },

@wiliwomber
Copy link

@hendrikswan this is still not working. You might want to update the package.json and set react-scripts to newest version :)

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

2 participants