Prerequisites
macOS
-
install homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
update homebrew
$ brew update
-
install npm and node ^14.x
$ brew install node@14
ubuntu
-
install npm ^6.x
$ sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash –
-
install nodejs ^14.x
$ sudo apt install nodejs
warning
make sure you have node version ^14.x or higher with node -v