-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
🐞 Bug report
Command (mark with an x
)
ng serve --open --port XXXX says error:
Port XXXX is already in use. Use '--port' to specify a different port.
in cmd "netstats" that ports are not used.
Description
Using Intellij Idea.
Its just simple AngularCLI application without additional code.
Just starting npm install -g @angular/cli@1.7.4
and ng new angularclient
Trying to make application Spring Boot + Angular - https://www.baeldung.com/spring-boot-angular-web
After i tried to make another Angular project without backend, just used WebStorm -> AngularCLI -> node v10.16.3. I have got the same error
🔥 Exception or Error
> frontend@0.0.0 start C:\Users\korzh\Programming\Java\Study\Spring\FullStack\frontend
> ng serve
Port 4200 is already in use. Use '--port' to specify a different port.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend@0.0.0 start: `ng serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\korzh\AppData\Roaming\npm-cache\_logs\2019-08-18T18_40_28_465Z-debug.log
my project structure first time(when i Did Angular and Spring in 1 project).
-angularclient: e2e, node_modules, src, angular-clie.json, other files...
-src: main->java, resources->static, templates, application.properties; test
pom.xml
When i did it in Intellij in Spring project, my .angular-cli-json -> "$schema": "./node_modules/@angular/cli/lib/config/schema.json", was saying "node_modules not found",
deleted "./", alt+enter on node_modules and its creating package in src/main/resources/static/node_modules. When i tried to move all my angularclient project to "static" - not working.
If it securaly i can share what is in C:\Users\korzh\AppData\Roaming\npm-cache_logs\2019-08-18T18_40_28_465Z-debug.log
Anything else relevant?