Install NPM and NEAR-CLI

  1. Download and install the node.js most compatible with your system: https://nodejs.org/en/download/. We recommend the LTS version.

  2. Confirm the installation by running this command in your terminal:

    node -v
    

    A successful installation returns a version number.

  3. Install Near-shell:

    sudo npm install -g near-cli
    near --version
    

A successful installation returns a version number.