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

Site cannot be reached on port 9000 #58

Open
steveareeno opened this issue Apr 27, 2022 · 1 comment
Open

Site cannot be reached on port 9000 #58

steveareeno opened this issue Apr 27, 2022 · 1 comment

Comments

@steveareeno
Copy link

I am trying to run this app in visual studio code but I am getting "this site cannot be reached" when using port 9000,

Config:
Windows 10 Enterprise, build 19044.1645

Angular CLI: 13.0.4
Node: 16.14.2
Package Manager: npm 6.14.5
OS: win32 x64

Angular: 13.0.3
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router

@angular-devkit/architect (0.1300.4)
@angular-devkit/build-angular (13.0.4)
@angular-devkit/core (13.0.4)
@angular-devkit/schematics (13.0.4)
@angular/cli (13.0.4)
@schematics/angular (13.0.4)
rxjs (6.5.4)
typescript (4.4.4)

When I find all the instances of port 9000 and change it to 4200, the application runs but I cannot hit the courses api. I get a 404 error. Also, when I run it under port 9000 using "npm start", the command line shows:

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

Any help is appreciated.

@steveareeno
Copy link
Author

I figured it out. I put everything back to port 9000. I have to run "npm run server" to start the server, then run "npm start" in a separate terminal to start the application. I missed the first step

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