mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
34 lines
573 B
Markdown
34 lines
573 B
Markdown
|
---
|
||
|
title: 安装 Logto SDK
|
||
|
subtitle: 1 step
|
||
|
---
|
||
|
## 方案1: 安装 SDK 依赖包
|
||
|
|
||
|
Run the CLI command under your project's root directory.
|
||
|
|
||
|
```
|
||
|
// installation with npm
|
||
|
npm install @logto/react --save
|
||
|
|
||
|
// installation with yarn
|
||
|
yarn add @logto/react
|
||
|
|
||
|
// installation with pnpm
|
||
|
pnpm install @logto/react --save
|
||
|
```
|
||
|
|
||
|
## 方案2: Add script tag to your HTML
|
||
|
|
||
|
```
|
||
|
<script src="https://logto.io/js/logto-sdk-react/0.1.0/logto-sdk-react.production.js"></script>
|
||
|
```
|
||
|
|
||
|
## 方案3: Fork your own from github
|
||
|
|
||
|
```
|
||
|
git clone https://github.com/logto-io/js.git
|
||
|
```
|
||
|
|
||
|
```
|
||
|
pnpm build
|
||
|
```
|