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

'PORT' is not recognized as an internal or external command #113

Closed
jrmcdona opened this issue Jul 5, 2017 · 4 comments
Closed

'PORT' is not recognized as an internal or external command #113

jrmcdona opened this issue Jul 5, 2017 · 4 comments

Comments

@jrmcdona
Copy link

jrmcdona commented Jul 5, 2017

Hello, I am trying to run yarn start and getting the below error. Any idea on what is going wrong?

C:\Users\v-jormc\Source\Repos\Responder\responder.pwa>yarn start
yarn start v0.24.6
$ concurrently "cd client && PORT=3000 yarn start" "cd server && PORT=3001 yarn start"
[0] 'PORT' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'PORT' is not recognized as an internal or external command,
[1] operable program or batch file.
[1] cd server && PORT=3001 yarn start exited with code 1
[0] cd client && PORT=3000 yarn start exited wit
{
  "name": "microsoft.responder.pwa",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "concurrently": "^3.5.0"
  },
  "scripts": {
    "install": "(cd client && yarn) && (cd server && yarn)",
    "start": "concurrently \"cd client && PORT=3000 yarn start\" \"cd server && PORT=3001 yarn start\""
  }
}
@jrmcdona
Copy link
Author

jrmcdona commented Jul 5, 2017

I think it may be because I am on Windows. Trying to find another option.

@filipesilva
Copy link
Collaborator

Yeah it's related to this bit of your script: PORT=3001 yarn start. It's not related to concurrently proper.

@jrmcdona
Copy link
Author

jrmcdona commented Jul 5, 2017

Created an .env file facebook/create-react-app#1083 and moved PORT to there and seems to be working now

@jrmcdona jrmcdona closed this as completed Jul 5, 2017
@daryabi
Copy link

daryabi commented May 4, 2020

Change to "start": "react-scripts start", it work for me

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

3 participants