SHARE
TWEET

Untitled

a guest Jul 17th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Find existing version
  2. node --version
  3.  
  4. # Search available Node versions.
  5. brew search node
  6.  
  7. # I neeeded a version between > 10.0 < 11. So I chose node@10.
  8. brew install node@10
  9.  
  10. # You can install multiple versions, but you cannot have them available all at once.
  11. # Hence unlink the generic version.
  12. brew unlink node
  13.  
  14. # Link the version that you just installed.
  15. brew link node@10
  16.  
  17. # For some older node versions (which are keg-only), it might be required to link them
  18. # with the --force and --overwrite options
  19. brew link --force --overwrite node@10
  20.  
  21. # Find downgraded version
  22. node --version
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top