marcinb1986
marcinb1986

Reputation: 892

Cannot change default port in NX JS project in React app

I try to change NX JS default port from 4200 to any different value. I tried some commands which I understood from documentation that need to be placed into terminal and it didn't work:

yarn nx serve --port:3000
yarn nx serve myapp port:3000
nx serve myapp port:3000

what I do wrong ?

thanks

Upvotes: 1

Views: 1301

Answers (1)

Connor
Connor

Reputation: 66

Try using nx serve myapp --port 3000

Upvotes: 5

Related Questions