twilio / twilio-cli

Unleash the power of Twilio from your command prompt
MIT License
162 stars 79 forks source link

Installing twilio-cli can cause two versions of node to be installed on a system #547

Closed TheSisb closed 1 year ago

TheSisb commented 1 year ago

Issue Summary

Following the instructions on the docs to run brew tap twilio/brew && brew install twilio causes an installation of nodejs through homebrew. This can cause issues in projects on the machine if nodejs is already being used, and was installed through another means (not homebrew). In my case, I was no longer able to build a project depending on nodejs v14 as homebrew installed nodejs v20.

Steps to Reproduce

  1. Download and install the LTS version of nodejs on a Mac from the nodejs website: https://nodejs.org/en/download (v18 at time of post)
  2. Install twilio-cli through homebrew: brew tap twilio/brew && brew install twilio
  3. You now have 2 different node installations locally that conflict from project to project

Exception/Log

Trying to install flex plugins was claiming nodejs was on version 20: image

But typing node -v on my machine was showing version 14: image

How I fixed it

I had to manually uninstall the force-installed homebrew nodejs with: brew uninstall --force node Now typing node -v correctly shows my original nodejs install version

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. Please remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.