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

Use fnm env to activate fnm not work in git-bash for windows #1091

Open
ArkURL opened this issue Jan 17, 2024 · 4 comments
Open

Use fnm env to activate fnm not work in git-bash for windows #1091

ArkURL opened this issue Jan 17, 2024 · 4 comments

Comments

@ArkURL
Copy link

ArkURL commented Jan 17, 2024

I'm using git-bash for windows to use fnm, and I use powershell to install fnm.
After installation, I found fnm env command not work in git-bash so can't change node enviroment. How to solve it?
Here is the gif:
PixPin_2024-01-17_10-08-02

@ArkURL
Copy link
Author

ArkURL commented Jan 17, 2024

By the way, I already add eval "$(fnm env --use-on-cd)" in ~/.bashrc file.

@SujitSingh
Copy link

I too have similar issue in Windows 11 after installing FNM using winget install Schniz.fnm command.

fnm-error

I have tried adding eval "$(fnm env --use-on-cd)" and fnm env --use-on-cd in both .bashrc and .bash_profile files.

@shekargoud26
Copy link

You have to use the command eval "$(fnm env)" Just running fnm env won't work.

@grothag
Copy link

grothag commented May 23, 2024

I too have similar issue in Windows 11 after installing FNM using winget install Schniz.fnm command.

fnm-error

I have tried adding eval "$(fnm env --use-on-cd)" and fnm env --use-on-cd in both .bashrc and .bash_profile files.

So fnm does not work on windows in visual studio 2022 ? Same issue, visible in power shell but not cmd prompt and of course that means Visual Studio does not see it and nothing works. Any fix for this ?

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

4 participants