Install Node and N - Node Version Management on MacOS
Contents
Install node from official site
Select “macOS Installer (.pkg)” file. Download and install it as usual.
Install ’n’ - for node version management
|
|
To avoid using sudo, do (excerpt from official n docs - Link)
|
|
Now one can switch node version easily by executing ’n’ command
For switch to Node 12, do
|
|
Hope this helps!