pluralsight-react-performance icon indicating copy to clipboard operation
pluralsight-react-performance copied to clipboard

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

Open lepris opened this issue 3 years ago • 1 comments

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" },

lepris avatar Dec 22 '21 07:12 lepris

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

wiliwomber avatar Oct 13 '22 16:10 wiliwomber