Prerequisites

macOS#

  1. install homebrew

    $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. update homebrew

    $ brew update
  3. install npm and node ^14.x

    $ brew install node@14

ubuntu#

  1. install npm ^6.x

    $ sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash –
  2. install nodejs ^14.x

    $ sudo apt install nodejs
warning

make sure you have node version ^14.x or higher with node -v