Skip to content
FR
$ luzine debug --fix

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.

81solved errors 10categories 6debugging tools

Browse by area

Common errors

TypeError: Cannot read properties of undefined (reading 'map')

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 JSON

Fix "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 tree

Fix "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 min

Debugging tools

All tools →

Recently added

"App" is damaged and can't be opened. You should move it to the Trash.

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 directory

Fix "/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 certificate

Fix "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 min

How LuzineDebug gets you unstuck

1. The exact message

Each page starts from the message exactly as your terminal, browser or IDE shows it, with its variants across versions.

2. The real cause

Causes are ranked from most to least common: you check first what is most likely to be the problem.

3. The step-by-step fix

Short steps, in order, with the commands for Windows, macOS and Linux and code to copy.

4. Confirmed by developers

If the fix worked for you, confirm it in one click: the most useful pages rise for the next people.