ErrLookup › yarnpkg/yarn
yarnpkg/yarn
The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry · JavaScript · 251 source files
Analyzed at c2dda503f3 on 2026-08-13. 102 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| workspacesAddRootCheck | exception | error | workspaces, yarn-add, cli, guard |
| missingAddDependencies | exception | error | yarn-add, arguments, validation |
| Unexpected audit response (Invalid JSON): ${response} | exception | error | audit, network, registry, json, proxy |
| Unexpected audit response (Missing Metadata): ${JSON.stringi | exception | error | audit, registry, json, api-mismatch |
| foundErrors | exception | error | yarn-check, verify-tree, node-modules, integrity |
| Name should not start with "/", got "${str}" | exception | error | yarn-create, validation, package-name |
| Name should not start with ".", got "${str}" | exception | error | yarn-create, validation, package-name |
| Scope should not be empty, got "${str}" | exception | error | yarn-create, validation, scoped-package |
| invalidPackageName | exception | error | yarn-create, arguments, validation |
| execMissingCommand | exception | error | yarn-exec, arguments, validation |
| noName | exception | error | generate-lock-entry, manifest, package-json, validation |
| noVersion | exception | error | generate-lock-entry, manifest, package-json, version |
| noPermission | exception | error | global, permissions, eacces, filesystem |
| importResolveFailed | exception | error | yarn-import, resolution, package-lock, registry |
| importSourceFilesCorrupted | exception | error | yarn-import, package-lock, corruption, parsing |
| lockfileExists | exception | error | yarn-import, lockfile, guard |
| frozenLockfileError | exception | error | install, lockfile, ci, frozen-lockfile |
| installCommandRenamed | exception | error | cli, install, migration, npm-compat |
| linkMissing | exception | error | cli, link, symlink, global |
| unknownPackageName | exception | error | cli, link, manifest, package-json |
| nonInteractiveNoToken | exception | error | cli, auth, ci, non-interactive, registry |
| incorrectCredentials | exception | error | cli, auth, credentials, login |
| invalidPackageName | exception | error | cli, owner, validation, package-name |
| noName | exception | error | cli, pack, manifest, package-json |
| noVersion | exception | error | cli, pack, manifest, version |
| Release not found: ${range} | exception | error | cli, policies, semver, version, self-update |
| invalidAccess | exception | error | cli, publish, validation, access, registry |
| Don't know how to handle this file type | exception | error | cli, publish, filesystem, symlink |
| publishFail | exception | error | cli, publish, registry, network, version-conflict |
| tooManyArguments | exception | error | cli, publish, arguments, validation |
| unknownFolderOrTarball | exception | error | cli, publish, filesystem, validation |
| publishPrivate | exception | error | cli, publish, private, safety-guard |
| noName | exception | error | cli, publish, manifest, package-json |
| tooFewArguments | exception | error | cli, remove, arguments, validation |
| workspacesRemoveRootCheck | exception | error | cli, remove, workspaces, safety-guard |
| moduleNotInManifest | exception | error | cli, remove, manifest, dependencies |
| Command ${JSON.stringify(action)} not found. | exception | error | cli, run, scripts, did-you-mean |
| invalidPackageName | exception | error | validation, package-name, npm, cli-args |
| unknownPackageName | exception | error | manifest, package-name, config |
| packageNotFoundRegistry | exception | error | registry, network, publish, npm |
| requiredVersionInRange | exception | error | validation, cli-args, semver |
| linkMissing | exception | error | linking, filesystem, cli-args |
| unknownPackageName | exception | error | manifest, package-name, linking, config |
| unplugDisabled | exception | error | plugnplay, config, installer |
| tooFewArguments | exception | error | cli-args, validation, plugnplay |
| noArguments | exception | error | cli-args, validation, plugnplay |
| invalidVersionArgument | exception | error | cli-args, semver, validation |
| invalidVersion | exception | error | semver, validation, cli-args |
| missingWhyDependency | exception | error | cli-args, validation |
| tooManyArguments | exception | error | cli-args, validation |
| workspaceRootNotFound | exception | error | workspaces, config, manifest |
| workspaceMissingWorkspace | exception | error | cli-args, workspaces, validation |
| workspaceMissingCommand | exception | error | cli-args, workspaces, validation |
| workspaceUnknownWorkspace | exception | error | workspaces, manifest, validation |
| workspaceRootNotFound | exception | error | workspaces, config, manifest |
| noRequiredLockfile | exception | error | lockfile, ci, install |
| Unknown single instance type ${mutexType} | exception | error | cli, mutex, config |
| This command can only be run inside an individual workspace. | validation | error | workspaces, focus, install |
| Yarn hasn't been able to find a cache folder it can use. Ple | exception | error | cache, filesystem, permissions, config |
| Your project root defines workspaces but the feature is disa | validation | error | workspaces, config, yarnrc |
ENOENT Couldn't find a package.json file in $0 | exception | error | manifest, cache, enoent, install |
| Directory $0 doesn't exist | exception | error | filesystem, workspaces, cwd |
| The workspaces field in package.json must be an array. | validation | error | workspaces, config, manifest, validation |
| There are more than one workspace with name $0 | validation | error | workspaces, manifest, naming, validation |
| nohoist config is ignored in $0 because it is not a private | validation | error | workspaces, nohoist, manifest, validation |
| Error parsing JSON at $0, $1. | validation | error | json, config, manifest, parse-error |
| Invalid number of spaces | validation | error | lockfile, parse-error, indentation |
| Can't install from a lockfile of version ${version} as you'r | exception | error | lockfile, version, compatibility, upgrade |
| ${msg} ${this.token.line}:${this.token.col} in ${this.fileLo | validation | error | lockfile, parse-error, syntax |
| Found incompatible module. | exception | error | engines, platform, compatibility, install |
| Incorrect integrity when fetching from the cache for $0. Cac | exception | error | security, cache, integrity, install |
| Incorrect hash when fetching from the cache for $0. Cache ha | exception | error | security, cache, hash, install |
| Unknown fetcher for $0 | exception | error | fetcher, lockfile, resolver, install |
| Couldn't find package $0 required by $1 on the $2 registry. | exception | error | registry, resolver, network, dependencies |
| Unknown registry resolver $0 | exception | error | registry, configuration, resolver |
| Can't add $0: invalid package version $1. | validation | error | semver, manifest, validation |
| The package $0 requires a flat dependency graph. Add `"flat" | exception | error | flat-mode, dependency-graph, configuration |
| Package $0 doesn't have a $1. | validation | error | manifest, validation, package-keys |
| Outdated lockfile. Please run `yarn install` and try again. | exception | error | lockfile, sync, configuration |
| Recursive .yarnrc files specifying --cwd flags. Bailing out. | exception | error | yarnrc, configuration, recursion |
| couldn't find ${name} | exception | error | registry, outdated, network |
| Package $1 refers to a non-existing file '$0'. | exception | error | file-resolver, paths, dependencies |
| Invalid gist fragment $0. | validation | error | gist, exotic-resolver, fragment |
| Invalid hosted git fragment $0. | validation | error | hosted-git, exotic-resolver, fragment |
| hostedGitResolveError | exception | error | hosted-git, network, resolver |
| invalidFragment | validation | error | exotic-resolver, fragment, registry |
| registryNoVersions | exception | error | registry, versions, resolution |
| malformedRegistryResponse | exception | error | registry, malformed, validation |
| couldntFindVersionThatMatchesRange | exception | error | semver, version-range, resolution |
| couldntFindPackageInCache | exception | error | offline, cache, resolution |
| packageNotFoundRegistry | exception | error | registry, package-not-found, resolution |
| Failed to replace env in config: ${match} | exception | error | env, config, env-replace |
| nodeGypAutoInstallFailed | exception | error | node-gyp, native-modules, lifecycle-script |
| unsure how to copy this: ${src} | exception | error | |
| Unable to find SHA for git HEAD | exception | error | |
| couldntFindMatch | exception | error | |
| manifestNameDot | validation | error | |
| manifestNameIllegalChars | validation | error | |
| manifestNameBlacklisted | validation | error | |
| manifestStringExpected | validation | error | |
| requestFailed | http | error | |
| requestManagerNotSetupHAR | exception | error |