-
Notifications
You must be signed in to change notification settings - Fork 464
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
fnm doesn’t automatically change versions with .node-version
or .nvmrc
files
#433
Comments
Actually, I might just be misunderstanding the usage of this library. I think I was expecting |
|
.node-version
or .nvmrc
files.node-version
or .nvmrc
files
You can use Check it in the README, I'm afk and can not link right now 😃 |
This works but when I get back to a parent directory or exit from the folder, it stays in the changed node version instead of reverting back to global default. Is there any workaround for this? |
I'm also interested in a possible workaround for this issue 👍🏼 |
Have you managed to find solution? |
In case someone lands on this ticket from search engines, for it to automatically switch to default alias when .node-version and .nvmrc are not found in parent folders, you want to use |
This is referred in #964, this works just like @sberlan-odeko as stated in here |
I experience a lot of output from fnm, whenever type a command. I solved that by adding > /dev/null and therefore suppressing the noise caused by the command in the config file:
|
OS: Latest macOS (v11.2.3 Big Sur)
Not sure if this is an issue within this project, or my current setup. fnm does seem to be managing my Node version (
which node
shows an fnm location). If I usefnm default
orfnm use
it respects that. But when Icd
into a dir with.node-version
or.nvmrc
, the Node version doesn’t seem to change.What’s weird is that if I’m in a dir with a
.node-version
or.nvmrc
file, runningfnm install
will correctly read that file (warning: Version already installed
etc.). However, runningnode --version
always shows the default. Am I missing something in setup?The text was updated successfully, but these errors were encountered: