I have a Mac M1 with Homebrew and installed node and nvm. I work on Shopify stores so I installed shopify-cli through Homebrew. I also work on BigCommerce stores so I installed Stencil CLI outside of Homebrew (npm install -g @bigcommerce/stencil-cli).
The problem happens with node when I go to run Stencil using “nvm use 14” would change it to v14 but when I run “node -v”, it reflected v20 (I think this is the version local to Mac).
To fix this, I ran “brew uninstall node” which allowed brew nvm to switch versions properly.
However, I screwed up Shopify-cli because brew said the node was a dependency for that.
How can I use Homebrew to control node for both Shopify-CLI and Stencil?
2