nvm-sh / nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
MIT License
78.48k stars 7.87k forks source link

Please support powershell on Linux #3270

Open AceHack opened 7 months ago

AceHack commented 7 months ago

There are no .ps1 files so this can't work on pwsh linux

ljharb commented 7 months ago

I'm not familiar with that - powershell is a windows thing, why would anyone use it on linux?

hamedprog commented 5 months ago

I'm not familiar with that - powershell is a windows thing, why would anyone use it on linux?

By using PowerShell, many features are added to the terminal. Additionally, we want to use a unified terminal across all environments.

ljharb commented 5 months ago

I’d expect the way to do that is WSL - iow, using the universal thing on windows, instead of trying to make everything else match the outlier.

ewancg commented 4 months ago

I’d expect the way to do that is WSL - iow, using the universal thing on windows, instead of trying to make everything else match the outlier.

What do you mean?

ljharb commented 4 months ago

Additionally, we want to use a unified terminal across all environments.

If you want "all environments", then a windows-only solution is never going to achieve that - since Windows has linux via WSL, the only available "all environments" solution is one that works on linux (and WSL2).

ewancg commented 4 months ago

How is powershell not also an "all environments" solution? It runs on Linux and macOS as well

ljharb commented 4 months ago

ok, fair - that truly is brand new information for me - but either way, it's not POSIX-compliant, so it's unlikely nvm can ever add support for it. However, since it's available on those OS's, a PR could certainly be made that would run tests on it - at which point, I could look into fixing them.

Instead of installing a windows tool on non-windows machines, you'll be much better off using a non-windows tool whenever the option is available - then the only environment you have to change is the least-desirable one.