-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path.npmrc
More file actions
26 lines (21 loc) · 1.09 KB
/
.npmrc
File metadata and controls
26 lines (21 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# For electron-builder
# https://github.com/electron-userland/electron-builder/issues/6289#issuecomment-1042620422
shamefully-hoist=true
# For China 🇨🇳 developers
electron_mirror=https://npmmirror.com/mirrors/electron/
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
node_sqlite3_mirror=https://npmmirror.com/mirrors/sqlite3/
sqlite3_binary_host_mirror=https://npmmirror.com/mirrors/sqlite3/
# For mac arm64
# arch=arm64
# target_arch=arm64
# npm_config_arch=arm64
# rebuild_sqlite=true
# If there is a problem with the package, you can try to delete the package cache and reinstall it.
# pnpm store prune
# pnpm store clear
# rm -rf node_modules
# rm -rf ~/.pnpm-store
npm install electron@29.1.1 sqlite3@5.1.6 --save-exact
# npm rebuild sqlite3 --runtime=electron --target=29.1.1 --dist-url=https://electronjs.org/headers --build-from-source
# npx rebuild sqlite3 --runtime=electron --target=29.1.1 --dist-url=https://electronjs.org/headers --build-from-source