Installation
This chapter explains the installation of the Flow CLient Library (FCL) JS library in your system. However, before we move to the installation, let's 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 with the below command:
_10node --version
If Node.js is not installed on your system, you can visit Node.js Download to download and install it.
Install FCL JS with npm or yarn
_10npm i -S @onflow/fcl
_10yarn add @onflow/fcl
Importing
ES6
_10import * as fcl from "@onflow/fcl";
Node.js
_10const fcl = require("@onflow/fcl");