Solved Node version conflict | Rails application | Anaconda

Ideakart
tech-daily
Published in
1 min readNov 8, 2023

I recently started learning with python using anaconda, besides that I also work on ruby on rails applications.
Now anaconda comes with it’s own flavour of node. But for the rails application with react I needed another node version.

I am also using nvm on my mac(intel), this was when I haven’t installed anaconda. So now conda node version overrides whatever is provided with the `nvm use` command. The way to disable the anaconda while working on rails application compatible node is

conda config --set auto_activate_base false

Now once you are done with the rails application and want to switch back to the python codebase. Just change the flag to true .
You can check it by opening a new tab you will not be seeing the base keyword, once the conda is disabled.
This really helped me in fixing the node issue.

For more such commands checkout this article:
https://bobbyhadz.com/blog/deactivate-and-disable-anaconda-base-environment

--

--