antfu-collective / ni

💡 Use the right package manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nr stop working in wsl

ElasticBottle opened this issue · comments

Describe the bug

image

nr suddenly stopped working in WSL for me.

Seemingly every other command (including na works)

I would have opened a discussion instead, but it isn't available for this repo.

Is there anyway that I can extract the output logs for the command? (this might be a wsl specific thing but I figured I start here)

Reproduction

npm -g i @antfu/ni then run nr

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 1.59 GB / 7.60 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.1/bin/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm

Used Package Manager

yarn

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

image

for more context on what the red knob shows

Turns out, the temp storage file that ni used was corrupted, deleting thew temp files solved the issue.