Skip to content

Can't Run 'npm update' - Fails With 'firebase-admin' Dependency Error #203

@midnightzigzag

Description

@midnightzigzag

Version info

firebase-functions: ^0.8.1

firebase-admin: ^5.8.2

Expected behavior

Run npm update to update all dependencies.

Actual behavior

Update fails with dependency error:

npm WARN firebase-functions@0.8.2 requires a peer of firebase-admin@~5.10.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code EINVAL
npm ERR! EINVAL: invalid argument, read

npm ERR! A complete log of this run can be found in:
npm ERR!    (user path omitted)

Firebase packages are installed globally, and in the project using --save.

When running npm update --save firebase-admin, the following error occurs:

$ npm update --save firebase-admin
npm WARN firebase-functions@0.8.1 requires a peer of firebase-admin@~5.8.1 but none is installed. You must install peer dependencies yourself.

npm ERR! code EINVAL
npm ERR! EINVAL: invalid argument, read

npm ERR! A complete log of this run can be found in:
npm ERR!      (user path omitted)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions