You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: snippets/node/installation.mdx
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,32 +20,43 @@ Add the [PowerSync Node NPM package](https://www.npmjs.com/package/@powersync/no
20
20
</Tab>
21
21
</Tabs>
22
22
23
-
**Required peer dependencies**
24
-
25
-
This SDK requires [`@powersync/better-sqlite3`](https://www.npmjs.com/package/@powersync/better-sqlite3) as a peer dependency:
23
+
**Peer dependencies**
24
+
25
+
The PowerSync SDK for Node.js supports multiple drivers. More details are available under [encryption and custom drivers](/client-sdk-references/node#encryption-and-custom-sqlite-drivers),
26
+
we currently recommend the `better-sqlite3` package for most users:
26
27
27
28
<Tabs>
28
29
<Tabtitle="npm">
29
30
```bash
30
-
npm install @powersync/better-sqlite3
31
+
npm install better-sqlite3
31
32
```
32
33
</Tab>
33
34
34
35
<Tabtitle="yarn">
35
36
```bash
36
-
yarn add @powersync/better-sqlite3
37
+
yarn add better-sqlite3
37
38
```
38
39
</Tab>
39
40
40
41
<Tabtitle="pnpm">
41
42
```bash
42
-
pnpm install @powersync/better-sqlite3
43
+
pnpm install better-sqlite3
43
44
```
44
45
</Tab>
45
46
</Tabs>
46
47
48
+
<Warning>
49
+
Previous versions of the PowerSync SDK for Node.js used the `@powersync/better-sqlite3` fork as a
50
+
required peer dependency.
51
+
This is no longer recommended. After upgrading to `@powersync/node` version `0.12.0` or later, ensure
52
+
the old package is no longer installed by running `@powersync/better-sqlite3`.
53
+
</Warning>
54
+
47
55
**Common installation issues**
48
56
49
-
The `@powersync/better-sqlite` package requires native compilation, which depends on certain system tools. This compilation process is handled by `node-gyp` and may fail if required dependencies are missing or misconfigured.
57
+
The `better-sqlite` package requires native compilation, which depends on certain system tools.
58
+
Prebuilt assets are available and used by default, but a custom compilation may be started depending on the Node.js
59
+
or Electron version used.
60
+
This compilation process is handled by `node-gyp` and may fail if required dependencies are missing or misconfigured.
50
61
51
62
Refer to the [PowerSync Node package README](https://www.npmjs.com/package/@powersync/node) for more details.
0 commit comments