LLM Notice: This documentation site supports content negotiation for AI agents. Request any page with Accept: text/markdown or Accept: text/plain header to receive Markdown instead of HTML. Alternatively, append ?format=md to any URL. All markdown files are available at /md/ prefix paths. For all content in one file, visit /llms-full.txt
Skip to main content

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:


_10
node --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


_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");

Rate this page