Your error, explained and fixed step by step.
Paste the error message as it appears: LuzineDebug recognises it and shows you the cause and the fix, with code to copy. Web, mobile, AI, databases, systems, electronics.
Browse by area
Common errors
Fix "Cannot read properties of undefined" in JavaScript
You are reading a property (here map) on a value that is undefined or null. The object before the dot does not exist yet or does n…
JavaScript & Node.js Beginner 10 min Access to fetch at 'https://api.example.com/users' from origin 'http://localhost:5173' has…Fix "blocked by CORS policy: No 'Access-Control-Allow-Origin' header"
The browser blocks the response because the API server did not allow your page’s origin. The fix is on the server: send the Access…
JavaScript & Node.js Intermediate 20 min SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSONFix "Unexpected token '<', "<!DOCTYPE "... is not valid JSON"
Your code calls response.json() or JSON.parse(), but the server returned an HTML page (starting with <!DOCTYPE) instead of JSON. I…
JavaScript & Node.js Beginner 10 min Error: Cannot find module 'express'Fix "Error: Cannot find module" in Node.js
Node.js cannot find the imported package or file. For a package ('express'), install it with npm install in the folder that contai…
JavaScript & Node.js Beginner 10 min npm ERR! ERESOLVE unable to resolve dependency treeFix "npm ERR! ERESOLVE unable to resolve dependency tree"
npm refuses to install because two packages require incompatible versions of the same dependency, most often a peer dependency (Re…
JavaScript & Node.js Intermediate 15 min Error: Hydration failed because the server rendered HTML didn't match the client. As a res…Fix "Hydration failed because the server rendered HTML didn’t match the client" (React, Next.js)
The HTML generated on the server and React’s first render in the browser are not identical. Most often, a component renders a brow…
JavaScript & Node.js Intermediate 20 minDebugging tools
All tools →Error finder
Paste an error message or a log: the tool recognises the error and opens the right fix.
JSON validator
Validate, format and minify JSON, with the exact line and column of the error.
Regex tester
Test a regular expression live: highlighted matches, groups, replacement.
JWT decoder
Decode a JWT: header, payload, readable expiry dates and whether the token has expired.
HTTP status codes
All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.
Text diff
Compare two versions line by line: additions, deletions, invisible whitespace.
Recently added
Fix "App is damaged and can't be opened" on macOS (Gatekeeper)
Gatekeeper is blocking a downloaded app whose signature is missing, invalid or modified. Download it again from the official websi…
Systems (Windows, macOS, Linux) Intermediate 10 min E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1234 (unattended-…Fix "E: Could not get lock /var/lib/dpkg/lock-frontend" (apt, Ubuntu, Debian)
Another program is already using apt or dpkg, most often automatic updates (unattended-upgrades) right after boot. Wait for it to…
Systems (Windows, macOS, Linux) Beginner 10 min /bin/bash^M: bad interpreter: No such file or directoryFix "/bin/bash^M: bad interpreter: No such file or directory"
Your script has Windows line endings (CRLF): Linux reads #!/bin/bash followed by an invisible carriage return and looks for a prog…
Systems (Windows, macOS, Linux) Beginner 5 min user is not in the sudoers file. This incident will be reported.Fix "user is not in the sudoers file. This incident will be reported."
Your account is not allowed to use sudo: it is neither in the admin group (sudo on Debian and Ubuntu, wheel on Fedora, RHEL and Ar…
Systems (Windows, macOS, Linux) Beginner 5 min SSL certificate problem: unable to get local issuer certificateFix "SSL certificate problem: unable to get local issuer certificate" (git, curl, pip, npm)
The tool cannot find, in its certificate store, the authority that signed the server's certificate. In a company, it is almost alw…
Systems (Windows, macOS, Linux) Intermediate 20 min xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing…Fix "xcrun: error: invalid active developer path" on macOS
Apple's Command Line Tools (CLT) are missing or broken, often after a macOS update, while git, make or clang depend on them. Run x…
Systems (Windows, macOS, Linux) Beginner 10 minHow LuzineDebug gets you unstuck
Each page starts from the message exactly as your terminal, browser or IDE shows it, with its variants across versions.
Causes are ranked from most to least common: you check first what is most likely to be the problem.
Short steps, in order, with the commands for Windows, macOS and Linux and code to copy.
If the fix worked for you, confirm it in one click: the most useful pages rise for the next people.