Error messages, explained

What common error messages actually mean — EADDRINUSE, CORS, npm ERESOLVE, ModuleNotFoundError and more — with the likely causes ranked and the fixes that match them.

ErrorNode.js
Port already in use (EADDRINUSE)
Error: listen EADDRINUSE: address already in use :::3000
Errornpm
npm ERR! code ELIFECYCLE
npm ERR! code ELIFECYCLE
ErrorNode.js
Cannot find module
Error: Cannot find module 'express'
ErrorNode.js
JavaScript heap out of memory
<--- Last few GCs --->
Errorgit
fatal: not a git repository
fatal: not a git repository (or any of the parent directories): .git
Errorgit
Permission denied (publickey)
git@github.com: Permission denied (publickey).
Errorgit
Updates were rejected, non-fast-forward
! [rejected] main -> main (non-fast-forward)
ErrorWeb/CORS
blocked by CORS policy: No Access-Control-Allow-Origin
Access to fetch at 'https://api.example.com/data' from origin 'https://app.example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ErrorWeb/CORS
413 Payload Too Large
413 Payload Too Large (nginx shows: "413 Request Entity Too Large"; Express/body-parser shows: "PayloadTooLargeError: request entity too large")
ErrorPython
ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'requests'
ErrorPython
IndentationError: unexpected indent
File "script.py", line 4
ErrorPython
TypeError: NoneType object is not subscriptable
TypeError: 'NoneType' object is not subscriptable
ErrorDocker
Cannot connect to the Docker daemon
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ErrorLinux
bash: permission denied
bash: ./script.sh: Permission denied