Skip to content

Dependency conflict: tinyglobby requires picomatch@^4.0.3 but [email protected] is installed. #9295

@7hokerz

Description

@7hokerz

[REQUIRED] Environment info

firebase-tools: 14.19.1

Platform: Windows 10 22H2, vscode, Next.js(v15.5.4)

[REQUIRED] Test case

  1. npm update
  2. npm ls picomatch
  3. firebase deploy --only apphosting

[REQUIRED] Steps to reproduce

Follow the steps above in order.

And, these errors can be observed in step 2.

├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └─┬ [email protected]
│ │   └── [email protected] deduped
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └─┬ [email protected]
│       └─┬ [email protected]
│         ├─┬ [email protected]
│         │ └── [email protected] deduped invalid: "^4.0.3" from node_modules/tinyglobby, "^3 || ^4" from node_modules/tinyglobby/node_modules/fdir
│         └── [email protected] deduped invalid: "^4.0.3" from node_modules/tinyglobby
...
npm error code ELSPROBLEMS
npm error invalid: [email protected] D:\...\node_modules\picomatch

[REQUIRED] Expected behavior

The app is deployed normally without any package-related errors.

[REQUIRED] Actual behavior

There's a problem with deployment, and Cloud Build displays the logs for it.

npm error code EUSAGE
  | npm error
  | npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
  | npm error
  | npm error Missing: [email protected] from lock file

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions