Skip to content

[BUG] npm install does not output an error, but dependencies' dependencies are unmet #3377

@bhallstein

Description

@bhallstein

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

npm install fails to install dependencies of dependencies.

Expected Behavior

Either npm install should warn or error when it cannot meet dependencies in the tree, or npm install should successfully resolve and install the dependencies.

Steps To Reproduce

{
  "name": "npm-install-issue",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@apollo/client": "^3.3.19",
    "otter-editor": "^0.0.100"
  }
}

With above package.json, run npm install, then npm list --all, which shows several unmet dependencies. On my machine:

npm-install-issue:$ n list --all
[email protected] /Users/ben/Desktop/npm-install-issue
├─┬ @apollo/[email protected]
│ ├── UNMET DEPENDENCY @graphql-typed-document-node/core@^3.0.0
│ ├── @types/[email protected]
│ ├─┬ @wry/[email protected]
│ │ └── [email protected]
│ ├─┬ @wry/[email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── UNMET DEPENDENCY graphql-tag@^2.12.0
│ ├── UNMET DEPENDENCY graphql@^14.0.0 || ^15.0.0
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── @wry/[email protected] deduped
│ │ └─┬ @wry/[email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├── UNMET OPTIONAL DEPENDENCY subscriptions-transport-ws@^0.9.0
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
  ├── UNMET DEPENDENCY @heroicons/react@^1.0.1
  ├── UNMET DEPENDENCY react-beautiful-dnd@^13.1.0
  ├─┬ [email protected]
  │ ├── [email protected] deduped
  │ ├── [email protected] deduped
  │ ├── [email protected] deduped
  │ └─┬ [email protected]
  │   ├── [email protected] deduped
  │   └── [email protected] deduped
  ├── UNMET DEPENDENCY react-quill@^1.3.5
  ├─┬ [email protected]
  │ ├── [email protected]
  │ ├── [email protected] deduped
  │ ├── [email protected] deduped
  │ └── [email protected] deduped
  └── [email protected] deduped

npm ERR! code ELSPROBLEMS
npm ERR! missing: @graphql-typed-document-node/core@^3.0.0, required by @apollo/[email protected]
npm ERR! missing: graphql-tag@^2.12.0, required by @apollo/[email protected]
npm ERR! missing: graphql@^14.0.0 || ^15.0.0, required by @apollo/[email protected]
npm ERR! missing: @heroicons/react@^1.0.1, required by [email protected]
npm ERR! missing: react-beautiful-dnd@^13.1.0, required by [email protected]
npm ERR! missing: react-quill@^1.3.5, required by [email protected]

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ben/.npm/_logs/2021-06-07T13_52_14_749Z-debug.log

Environment

  • OS: macOS Big Sur v11.4
  • Node: 16.3.0
  • npm: 7.16.0

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions