How to install nodejs 4.1.2 using HomeBrew

I installed NodeJs with the following commands:

brew install node

We downloaded version 5.5.0 from NodeJs.

I need version 4.1.2 (for ion compatibility).

How to download this specific?

I can not start brew switch node 4.1.2since I have never downloaded it before.

+4
source share
2 answers

Can i use nvm ?

With nvm, you can switch between node versions very simply:

nvm install 4.2

And you can install several versions of node and switch between them as you want.

+4
source

You can find the available node versions to install with:

brew node

"node4-lts". , :

brew homebrew/versions/node4-lts

+2

Source: https://habr.com/ru/post/1626534/


All Articles