每次 npm install sqlite3
必搜:如何使用二进制镜像……
赶紧做个笔记。
1 | npm i sqlite3@5.1.6 --node_sqlite3_binary_host_mirror=https://registry.npmmirror.com/-/binary/sqlite3 |
新版本修改了命令行参数(v5.1.7 changes the usage of a binary mirror (incompatibly) · Issue #1773),那么就应该是:
1 | npm i sqlite3@5.1.7 --sqlite3_binary_host_mirror=https://registry.npmmirror.com/-/binary/sqlite3 |