Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-g option for global packages #63

Open
3 tasks done
phenomen opened this issue Apr 5, 2023 · 3 comments
Open
3 tasks done

-g option for global packages #63

phenomen opened this issue Apr 5, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@phenomen
Copy link

phenomen commented Apr 5, 2023

Clear and concise description of the problem

There is no way to check updates for packages installed in a global scope (npm/pnpm install * -g).

Suggested solution

Add -g option to check/write updates for packages installed globally.

Alternative

No response

Additional context

No response

Validations

@phenomen phenomen added the enhancement New feature or request label Apr 5, 2023
@andrewspy
Copy link

Doesn't seem to support pnpm currently.

@simexce
Copy link
Contributor

simexce commented Sep 27, 2023

The loadGlobalPnpmPackage method throws an exception
#81

Current environment

  1. The pnpm version is 8.8.0.
  2. taze version is 0.11.3.
  3. The output of command pnpm ls --global --depth=0 --json is
[
    {
        "path": "C:\\Users\\simexce\\AppData\\Local\\pnpm\\global\\5",
        "private": false
    }
]

Reason
pnpmOut => Object.entries(pnpmOut.dependencies),pnpmOut.dependencies is undefined.

@touhidurrr
Copy link

touhidurrr commented May 8, 2024

Also, does not work on Node 22 when taze is installed with bun. taze is installed with npm works.

PS C:\Windows\System32> taze -g
TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at loadGlobalNpmPackage (file:///C:/Users/User/.bun/install/global/node_modules/taze/dist/cli.mjs:942:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async checkGlobal (file:///C:/Users/User/.bun/install/global/node_modules/taze/dist/cli.mjs:850:22)
    at async Object.handler (file:///C:/Users/User/.bun/install/global/node_modules/taze/dist/cli.mjs:1060:18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants