Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: CLI - deco update command assumes npm global install #949

@viktormarinho

Description

@viktormarinho

Describe the bug

A clear and concise description of what the bug is.

when using deco update, the command assumes the global install to update uses npm. This is wrong, it could be using bun, for example.

To Reproduce

Steps to reproduce the behavior:

  1. Install deco-cli with bun bun i -g deco-cli in an old version
  2. Run deco update to download and install latest version (the program will use npm)
  3. Now when you run deco --version you still are using the bun one, which is on the old version.

Expected behavior

The CLI should detect what package manager is being used when self-updating.

Environment

  • OS: macOS

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