antfu-collective / ni

💡 Use the right package manager
MIT License
6.42k stars 210 forks source link

关于 `Trouble shooting` 修复 window PowerShell 冲突的脚本 #145

Open Carina957 opened 1 year ago

Carina957 commented 1 year ago

Describe the bug

当我把 脚本 添加到我的 PowerShell 配置文件中,尝试修复 Conflicts with PowerShell 时,发生了某些异常。

Reproduction

https://chis-blog.netlify.app/notes/reproduction/

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz   
    Memory: 976.27 MB / 7.89 GB
  Binaries:
    Node: 16.19.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.19.3 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (111.0.1661.41)
    Internet Explorer: 11.0.19041.1202

Used Package Manager

npm

Validations

so1ve commented 1 year ago

just open your profile and add Remove-Alias ni -Force...