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

'bvm remove --all' throws exception and deadlocks #83

Open
mathias-falkenberg opened this issue Apr 19, 2023 · 0 comments
Open

'bvm remove --all' throws exception and deadlocks #83

mathias-falkenberg opened this issue Apr 19, 2023 · 0 comments

Comments

@mathias-falkenberg
Copy link

mathias-falkenberg commented Apr 19, 2023

OS: Windows 10 Enterprise (10.0.19045)
bvm v0.3.1
node v18.15.0
npm v9.5.0

I have multiple versions of bit installed:

➜ bvm list
0.0.888
0.1.11
0.1.4
0.1.7

The help text for bvm provides a broken example for removal (bvm remove all --keep-latest-versions 3). Running bvm remove -h, however, provides the proper --all switch syntax.

Running bit remove --all yields the following:

➜ bvm remove --all
⠹ removing versions from the file systemCannot read properties of undefined (reading 'removeVersions')
TypeError: Cannot read properties of undefined (reading 'removeVersions')
    at C:\ProgramData\nvm\v18.15.0\node_modules\@teambit\bvm\node_modules\@teambit\bvm.remove\dist\remove.js:65:21
    at Generator.next (<anonymous>)
    at fulfilled (C:\ProgramData\nvm\v18.15.0\node_modules\@teambit\bvm\node_modules\@teambit\bvm.remove\dist\remove.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
⠏ removing versions from the file system

After this, the command seems to be stuck in an infinite loop.

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

No branches or pull requests

1 participant