Skip to content

Dependency conflict: tinyglobby requires picomatch@^4.0.3 but picomatch@2.3.1 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.

├─┬ firebase-tools@14.19.1
│ ├─┬ chokidar@3.6.0
│ │ ├─┬ anymatch@3.1.3
│ │ │ └── picomatch@2.3.1 deduped
│ │ └─┬ readdirp@3.6.0
│ │   └── picomatch@2.3.1 deduped
│ └─┬ superstatic@9.2.0
│   └─┬ re2@1.22.1
│     └─┬ node-gyp@11.4.2
│       └─┬ tinyglobby@0.2.15
│         ├─┬ fdir@6.5.0
│         │ └── picomatch@2.3.1 deduped invalid: "^4.0.3" from node_modules/tinyglobby, "^3 || ^4" from node_modules/tinyglobby/node_modules/fdir
│         └── picomatch@2.3.1 deduped invalid: "^4.0.3" from node_modules/tinyglobby
...
npm error code ELSPROBLEMS
npm error invalid: picomatch@2.3.1 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: picomatch@4.0.3 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