Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement