Error map

ERESOLVE npm ERR! code ERESOLVE — unable to resolve dependency tree

npm · layer 7, Build & delivery

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

ERESOLVE — npm ERR! code ERESOLVE — unable to resolve dependency tree (npm)ERESOLVEEOVERRIDE — npm ERR! code EOVERRIDE — Override for x conflicts with direct dependency (npm)EOVERRIDEMODULE_NOT_FOUND — Error: Cannot find module 'x' (MODULE_NOT_FOUND) (Node.js)MODULE_NOT_FOUNDE404 — npm ERR! code E404 — 404 Not Found: package@version is not in this registry (npm)E404ELSPROBLEMS — npm ERR! code ELSPROBLEMS — invalid / extraneous / missing packages in npm ls (npm)ELSPROBLEMSNU1101 — error NU1101: Unable to find package X. No packages exist with this id in source(s): nuget.org (.NET)NU1101EINTEGRITY — npm ERR! code EINTEGRITY — sha512 integrity checksum failed (npm)EINTEGRITYCocoaPods compatible versions — CocoaPods could not find compatible versions for pod (iOS)CocoaPods compatibl…npm git dependency error — npm ERR! code 128 — An unknown git error occurred (git dependency install) (npm)npm git dependency …held broken packages — Unmet dependencies / E: Unable to correct problems, you have held broken packages (Linux)held broken packagesRuntime.ImportModuleError — Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'x' (AWS)Runtime.ImportModul…Invalid hook call (duplicate React in Next.js) — Next.js: Error: Invalid hook call. Hooks can only be called inside of the body of a function component — Cannot read properties of null (reading 'useContext') (Next.js)Invalid hook call (…Invalid hook call — Error: Invalid hook call. Hooks can only be called inside of the body of a function component. (React)Invalid hook callETARGET — npm ERR! code ETARGET — No matching version found for package@^9.9.9 (npm)ETARGETEJSONPARSE — npm ERR! code EJSONPARSE — Failed to parse json / Unexpected token in JSON at position (npm)EJSONPARSEnpm WARN deprecated — npm WARN deprecated package@1.2.3: This package is no longer supported. (npm)npm WARN deprecatedENOENT — Error: ENOENT: no such file or directory (Node.js)ENOENTTypeError: not a function — TypeError: x is not a function (JavaScript)TypeError: not a fu…ModuleNotFoundError — ModuleNotFoundError: No module named 'x' (Python)ModuleNotFoundError404 — HTTP 404 Not Found (HTTP)404Maven resolve — [ERROR] Failed to execute goal on project x: Could not resolve dependencies for project (Java)Maven resolveE401 — npm ERR! code E401 — Unable to authenticate, need: Basic realm / Incorrect or missing password (npm)E401ENOTEMPTY — npm ERR! code ENOTEMPTY — ENOTEMPTY: directory not empty, rename (npm)ENOTEMPTYnpm ci out of sync — npm ERR! `npm ci` can only install packages when your package.json and package-lock.json are in sync (npm)npm ci out of syncscript command not found — sh: vite: command not found (npm script) (npm)script command not …Could not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveImportError — ImportError: cannot import name 'x' from 'y' (Python)ImportErrorClassNotFoundException — java.lang.ClassNotFoundException / NoClassDefFoundError (Java)ClassNotFoundExcept…npm ci no lockfile — npm ERR! The `npm ci` command can only install with an existing package-lock.json or npm-shrinkwrap.json (npm)npm ci no lockfileold lockfile — npm WARN old lockfile — The package-lock.json file was created with an old version of npm, so supplemental metadata must be fetched (npm)old lockfilecb() never called — npm ERR! cb() never called! (npm)cb() never calledPhaseScriptExecution — Xcode: Command PhaseScriptExecution failed with a nonzero exit code (iOS)PhaseScriptExecutionMultiple commands produce — Xcode: Multiple commands produce '…/Info.plist' (or another file) (iOS)Multiple commands p…NoSuchMethodError — java.lang.NoSuchMethodError (Java)NoSuchMethodErrorpublickey — Git: Permission denied (publickey). fatal: Could not read from remote repository. (Git)publickeyEBADPLATFORM — npm ERR! code EBADPLATFORM — notsup Unsupported platform for fsevents: wanted {"os":"darwin"} (current: {"os":"linux"}) (npm)EBADPLATFORMTF401019 — TF401019: The Git repository with name or identifier x does not exist or you do not have permissions for the operation (Azure)TF401019dpkg lock — E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it? (Linux)dpkg lockDuplicate class — Duplicate class X found in modules A and B (Android)Duplicate classERR_PACKAGE_PATH_NOT_EXPORTED — Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './x' is not defined by "exports" (Node.js)ERR_PACKAGE_PATH_NO…EBADENGINE — npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module (Node.js)EBADENGINEDEP0040 — DeprecationWarning: The `punycode` module is deprecated (DEP0040) (Node.js)DEP0040node-sass — Error: Node Sass does not yet support your current environment (Node.js)node-sassreact-hooks/exhaustive-deps — React Hook useEffect has a missing dependency (react-hooks/exhaustive-deps) (React)react-hooks/exhaust…async useEffect — Warning: useEffect must not return anything besides a function, which is used for clean-up. It looks like you wrote useEffect(async () => ...) (React)async useEffectuseLayoutEffect SSR — Warning: useLayoutEffect does nothing on the server (React)useLayoutEffect SSRToo many re-renders — Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. (React)Too many re-rendersHydration failed — Error: Hydration failed because the initial UI does not match what was rendered on the server (React)Hydration failedMaximum update depth — Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. (React)Maximum update depth

Directly related (12)

EOVERRIDEnpm

npm ERR! code EOVERRIDE — Override for x conflicts with direct dependency

An "overrides" entry sets a different version for a package you also depend on directly.

MODULE_NOT_FOUNDNode.js

Error: Cannot find module 'x' (MODULE_NOT_FOUND)

Node can’t resolve the module path — the package isn’t installed, or a relative path/extension is wrong.

E404npm

npm ERR! code E404 — 404 Not Found: package@version is not in this registry

npm asked the registry for a package (or version) that doesn’t exist there — a typo, a private/scoped package without auth, or th…

ELSPROBLEMSnpm

npm ERR! code ELSPROBLEMS — invalid / extraneous / missing packages in npm ls

npm ls found the installed tree doesn’t match package.json and the lockfile.

NU1101.NET

error NU1101: Unable to find package X. No packages exist with this id in source(s): nuget.org

NuGet restore can’t find the package in any configured source — typo, private feed not configured/authenticated, or nuget.org mis…

EINTEGRITYnpm

npm ERR! code EINTEGRITY — sha512 integrity checksum failed

A downloaded package’s hash doesn’t match the integrity value in package-lock.json — a corrupted cache, a changed tarball, or a l…

CocoaPods compatible versionsiOS

CocoaPods could not find compatible versions for pod

pod install can’t satisfy the version constraints — outdated spec repo, a higher deployment target required, or two pods needing…

npm git dependency errornpm

npm ERR! code 128 — An unknown git error occurred (git dependency install)

npm failed to fetch a dependency that points to a Git repository.

held broken packagesLinux

Unmet dependencies / E: Unable to correct problems, you have held broken packages

apt can’t find a set of package versions that satisfies all dependencies — usually mixed repositories or a package from another r…

Runtime.ImportModuleErrorAWS

Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'x'

Lambda couldn’t load your handler file or one of its dependencies — the package is missing from the deployment zip/layer or the h…

Invalid hook call (duplicate React in Next.js)Next.js

Next.js: Error: Invalid hook call. Hooks can only be called inside of the body of a function component — Cannot read properties of null (reading 'useContext')

Two copies of React are loaded (or React/ReactDOM versions differ), so hooks can't find the active renderer.

Invalid hook callReact

Error: Invalid hook call. Hooks can only be called inside of the body of a function component.

A hook ran outside a function component/custom hook, conditionally — or two copies of React are loaded.

Two steps away (36)

ETARGETnpm

npm ERR! code ETARGET — No matching version found for package@^9.9.9

The version range in package.json doesn’t match any published version of the package.

EJSONPARSEnpm

npm ERR! code EJSONPARSE — Failed to parse json / Unexpected token in JSON at position

package.json (or package-lock.json) contains invalid JSON.

npm WARN deprecatednpm

npm WARN deprecated package@1.2.3: This package is no longer supported.

A dependency (often a transitive one) is deprecated by its author.

ENOENTNode.js

Error: ENOENT: no such file or directory

A file or directory the program tried to open doesn’t exist at that path.

TypeError: not a functionJavaScript

TypeError: x is not a function

You called something as a function, but its value is not a function (it’s undefined, a string, an object…).

ModuleNotFoundErrorPython

ModuleNotFoundError: No module named 'x'

Python can’t find the module you import — it isn’t installed in the interpreter/virtualenv that’s running, or the import path is…

404HTTP

HTTP 404 Not Found

The server can’t find anything at the requested URL.

Maven resolveJava

[ERROR] Failed to execute goal on project x: Could not resolve dependencies for project

Maven couldn’t download or find one or more dependencies.

E401npm

npm ERR! code E401 — Unable to authenticate, need: Basic realm / Incorrect or missing password

The registry rejected your credentials — missing, expired or wrong auth token.

ENOTEMPTYnpm

npm ERR! code ENOTEMPTY — ENOTEMPTY: directory not empty, rename

npm couldn’t rename a folder in node_modules because it wasn’t empty — usually a corrupted or concurrently modified node_modules.

npm ci out of syncnpm

npm ERR! `npm ci` can only install packages when your package.json and package-lock.json are in sync

package-lock.json doesn’t match package.json, so npm ci refuses to install.

script command not foundnpm

sh: vite: command not found (npm script)

A tool used in an npm script isn’t installed in node_modules/.bin.

Could not resolveAndroid

Gradle: Could not resolve all files for configuration / Could not resolve dependency

Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.

ImportErrorPython

ImportError: cannot import name 'x' from 'y'

The module was found, but the name you’re importing from it doesn’t exist — usually a version change or a circular import.

ClassNotFoundExceptionJava

java.lang.ClassNotFoundException / NoClassDefFoundError

The JVM couldn’t find a class on the classpath at runtime.

npm ci no lockfilenpm

npm ERR! The `npm ci` command can only install with an existing package-lock.json or npm-shrinkwrap.json

npm ci needs a committed lockfile and didn’t find one.

old lockfilenpm

npm WARN old lockfile — The package-lock.json file was created with an old version of npm, so supplemental metadata must be fetched

The lockfile is lockfileVersion 1 (npm 6) and npm 7+ is upgrading it.

cb() never callednpm

npm ERR! cb() never called!

An old npm crash during install — usually network/cache corruption.

PhaseScriptExecutioniOS

Xcode: Command PhaseScriptExecution failed with a nonzero exit code

A Run Script build phase (CocoaPods, React Native, Flutter, SwiftLint, Crashlytics…) failed. The real error is above this line in…

Multiple commands produceiOS

Xcode: Multiple commands produce '…/Info.plist' (or another file)

Two build steps write the same output file — usually Info.plist or an asset added to “Copy Bundle Resources”, or duplicate files…

NoSuchMethodErrorJava

java.lang.NoSuchMethodError

Code compiled against one version of a library is running with another version where the method doesn’t exist.

publickeyGit

Git: Permission denied (publickey). fatal: Could not read from remote repository.

SSH authentication to GitHub/GitLab/Bitbucket failed — no key, wrong key, or the key isn’t added to your account.

EBADPLATFORMnpm

npm ERR! code EBADPLATFORM — notsup Unsupported platform for fsevents: wanted {"os":"darwin"} (current: {"os":"linux"})

A package restricted to certain OS/CPU was installed as a required (not optional) dependency on another platform.

TF401019Azure

TF401019: The Git repository with name or identifier x does not exist or you do not have permissions for the operation

The repo doesn’t exist in that project, or the identity (user, PAT, pipeline build service) lacks permission to it.

dpkg lockLinux

E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it?

apt can’t run because another package operation (often automatic updates) holds the dpkg lock.

Duplicate classAndroid

Duplicate class X found in modules A and B

Two dependencies ship the same class — typically old Android Support libraries mixed with AndroidX, or Kotlin stdlib-jdk7/jdk8 ve…

ERR_PACKAGE_PATH_NOT_EXPORTEDNode.js

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './x' is not defined by "exports"

You imported a deep path inside a package that its package.json "exports" field doesn’t expose.

EBADENGINENode.js

npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module

A package requires a different Node.js version than the one you’re running.

DEP0040Node.js

DeprecationWarning: The `punycode` module is deprecated (DEP0040)

A dependency imports Node’s built-in punycode module, deprecated since Node 21.

node-sassNode.js

Error: Node Sass does not yet support your current environment

node-sass (deprecated) has no binary for your Node version/OS.

react-hooks/exhaustive-depsReact

React Hook useEffect has a missing dependency (react-hooks/exhaustive-deps)

ESLint warns that the effect reads a value that isn’t in its dependency array, so it may use a stale value.

async useEffectReact

Warning: useEffect must not return anything besides a function, which is used for clean-up. It looks like you wrote useEffect(async () => ...)

An async function was passed directly to useEffect, so it returns a Promise instead of a cleanup function.

useLayoutEffect SSRReact

Warning: useLayoutEffect does nothing on the server

A component using useLayoutEffect was server-rendered, where layout effects can’t run.

Too many re-rendersReact

Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

A state update runs during render, which triggers another render, which updates state again — forever.

Hydration failedReact

Error: Hydration failed because the initial UI does not match what was rendered on the server

The HTML rendered on the server differs from the first client render, so React (Next.js/Remix) can’t attach to it.

Maximum update depthReact

Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate.

A component keeps updating itself in an effect or lifecycle — usually a useEffect that sets state its own dependencies change.