Programming and debugging: solutions for the most common errors
Whether you are a beginner or an experienced programmer, errors when working with git, npm, Docker or the Python environment can slow you down. On this page you will find clear step-by-step instructions for the most common problems developers in Serbia encounter.
From git merge conflicts and reverting a commit, through npm ERR errors and dependency conflicts, to CORS errors, Docker containers that crash, Python pip/venv problems, SSL certificates, "module not found" errors, databases refusing connections, memory leaks and reading stack traces. Every guide is practical and tailored to real situations.
- Git merge conflict: how to resolve it quickly and continue workingGit merge conflict blocking you? Learn how to identify the cause, resolve the conflict in the editor or terminal, and safely continue with git merge --continue. Medium 15 min
- How to undo a git commit and restore the previous stateLearn how to safely undo a git commit and restore the previous state: git reset, git revert and reflog, when to use which and how not to lose work. Medium 10 min
- npm ERR! dependency conflict: how to resolve and install packagesLearn how to resolve npm ERR! dependency conflict and successfully install packages. Step by step with explanations and tips to avoid problems. Medium 15 min
- Node.js version not compatible: how to change it and fix the errorNode.js version not compatible? Learn how to check, change and align the Node.js version with your project and fix the error quickly and safely. Medium 15 min
- CORS error in browser: causes and solutions for developersCORS error blocks your API calls from the browser. Learn why it occurs and how to fix it on the frontend, backend, and during local development. Medium 20 min
- Docker container exits immediately: how to find the cause and fix itContainer starts then exits right away? Learn how to check logs, exit code, command and entrypoint, and quickly fix the problem. Medium 15 min
- Docker error: port is already in use, how to free itDocker reports that the port is already in use? Learn how to find the process holding it, free the port, and start the container without conflicts. Medium 10 min
- Python pip and venv errors: how to set up a correct environmentpip and venv errors often come from the wrong interpreter or system packages. Learn how to set up a clean virtual environment and avoid conflicts. Medium 20 min
- SSL certificate error in code: how to recognize and fix itSSL certificate error in code occurs due to expiration, untrusted CA, or wrong hostname. Learn how to recognize and safely fix it in development. Medium 20 min
- Module not found error: why it happens and how to fix itModule not found error in a Node.js or Python project: learn why it occurs, how to find and fix it quickly, and how to prevent it in the future. Easy 10 min
- Database refuses connection: how to establish a connectionDatabase refuses connection? Learn the most common causes and steps to establish a connection with MySQL, PostgreSQL and SQL Server databases. Medium 20 min
- Memory leak in an application: basics and how to detect itMemory leak in an application: learn how to recognize symptoms, find the cause and prevent program crashes. Practical steps for developers. Medium 30 min
Didn't find a fix?The AI IT assistant is available 24/7. Describe the problem or send a screenshot of the error and get instructions for your case.Ask the AI IT assistant