I want to run the n8n application in development mode (using npm) and connect to my own PostgreSql. But I can not do this in Windows 10 OS. Below is what I did:
- Checkout n8n source code
- Update n8n\packages\cli\config\index.ts, changed ‘database.type.default’ to ‘postgresdb’ and updated postgresdb config to my posgresql.
- npm run build //ran successfully without any error log
- npm run dev //ran successfully without any error log
- access to localhost:5678, the message "There was a problem loading init data:**
**API-Server can not be reached. It is probably down." appeared and blocked to UI (looks like the backend rest API could not start because of some reasons)
Note that this issue does not happen in Mac OS just in Windows 10.