By default does n8n start on port 5678. Only if you run the editor in development mode does it additionally serve it also from port 8080 (with hot-reload). If you have already something else running on 8080 then it starts on 8081 but will then not work because of cors.
hey @jan im new to n8n, I pretty much liked it and started using the dev mode. By default its using the 8081 port and im getting the init error. i tried to use Nginx Configuration that you have suggested but that didnt work for me. I still getting init error. Can u plz help me out with this
thanks, @jan., yes was not even able to change the execute node in p tag to something else, and the page is not reloading in 5678, but then I re-executed the application still nothing changed
apart from these, I tried consoling the values
I was unable to do that as well
Do sadly still not understand at all what is going on. There is is no port.js file and even in the server.js file there is also no port 8080 defined (except the one to allow to make CORS requests for local development).
What exactly is the problem you are having? Do you also have that problem if you do not change things in the n8n source code? Because if you do I can simply not support you as that is really not meant to happen. There is no need for users to change anything in the source code. Everything is set up in a way that it works out of the box and can be configured via environment variables.
With npm run dev, the application starts on http://localhost:8080 with the same screenshot from @ah6442 and all the resources attempting to load are failing with CORS errors for http://localhost:5678. I cannot access anything on http://localhost:5678 if I hit that directly.
These are the results for what is listening on 8080 and 5678: