Skip to content

[BUG] Error in NPM uninstall command #1320

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

Closed
4 tasks done
joguarino opened this issue Aug 28, 2023 · 0 comments · Fixed by #1318
Closed
4 tasks done

[BUG] Error in NPM uninstall command #1320

joguarino opened this issue Aug 28, 2023 · 0 comments · Fixed by #1318
Assignees
Labels
bug Something isn't working npm ready-to-go

Comments

@joguarino
Copy link
Contributor

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions
  • This issue is about a bug (if it is not, please use the correct template)

Describe your issue

When you try to uninstall an NPM package it returns an error and the package is not uninstalled.

Steps to reproduce the issue

No response

WingetUI Log

🔵 Starting <Package: Clock;clock;1.0.2;Npm@global;<PackageManagers.npm.NPMPackageManager object at 0x000002AAF5380C10>;<genericCustomWidgets.TreeWidgetItemWithQAction object at 0x000002AAFC083540>> uninstall with Command ['~\\source\\repos\\personali\\WingetUI\\wingetuiBin\\components\\gsudo.exe', 'npm', 'uninstall', '--global']
['npm ERR! code EUSAGE', 'npm ERR!', 'npm ERR! Remove a package', 'npm ERR!', 'npm ERR! Usage:', 'npm ERR! npm uninstall [<@scope>/]<pkg>...', 'npm ERR!', 'npm ERR! Options:', 'npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]', 'npm ERR! [-g|--global]', 'npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]', 'npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]', 'npm ERR!', 'npm ERR! aliases: unlink, remove, rm, r, un', 'npm ERR!', 'npm ERR! Run "npm help uninstall" for more info', 'npm ERR! A complete log of this run can be found in: ~\\AppData\\Local\\npm-cache\\_logs\\2023-08-28T14_40_49_631Z-debug-0.log', '']

Package Managers Logs

Nothing relevant

Relevant information

The problem is in the command given: https://github.com/marticliment/WingetUI/blob/77ea317061bfd1c535ae64ee7d42587ed9fb7a24/wingetui/PackageManagers/npm.py#L276
because the package Id is not specified.

Screenshots and videos

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working npm ready-to-go
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants