Skip to main content

Installation

This chapter explains the installation of the FCL JS library in your system. However, before moving to the installation, let us verify the prerequisite first.

Prerequisite​

  • Node.js version v12.0.0 or higher.

FCL JS depends on Node.js version v12.0.0 or higher. You can check your currently installed version using the below command:


_10
node --version

If Node.js is not installed on your system, you can download and install it by visiting Node.js Download.

Install FCL JS using npm or yarn


_10
npm i -S @onflow/fcl


_10
yarn add @onflow/fcl

Importing​

ES6


_10
import * as fcl from "@onflow/fcl";

Node.js


_10
const fcl = require("@onflow/fcl");