Replaced @mapbox/node-pre-gyp in favor of prebuild + `prebuild-in… · TryGhost/node-sqlite3@605c7f9 (original) (raw)

`@@ -35,7 +35,7 @@ yarn add sqlite3

`

35

35

``

36

36

`` sqlite3 v5+ was rewritten to use Node-API so prebuilt binaries do not need to be built for specific Node versions. sqlite3 currently builds for both Node-API v3 and v6. Check the Node-API version matrix to ensure your Node version supports one of these. The prebuilt binaries should be supported on Node v10+.

``

37

37

``

38

``

`` -

The module uses node-pre-gyp to download the prebuilt binary for your platform, if it exists. These binaries are hosted on GitHub Releases for sqlite3 versions above 5.0.2, and they are hosted on S3 otherwise. The following targets are currently provided:

``

``

38

`` +

The module uses prebuild-install to download the prebuilt binary for your platform, if it exists. These binaries are hosted on GitHub Releases for sqlite3 versions above 5.0.2, and they are hosted on S3 otherwise. The following targets are currently provided:

``

39

39

``

40

40

`` Format: napi-v{napi_build_version}-{platform}-{libc}-{arch}

``

41

41

``

`` @@ -56,11 +56,11 @@ Format: napi-v{napi_build_version}-{platform}-{libc}-{arch}

``

56

56

`` * napi-v6-win32-unknown-ia32

``

57

57

`` * napi-v6-win32-unknown-x64

``

58

58

``

59

``

`` -

Unfortunately, node-pre-gyp cannot differentiate between armv6 and armv7, and instead uses arm as the {arch}. Until that is fixed, you will still need to install sqlite3 from source.

``

``

59

`` +

Unfortunately, prebuild cannot differentiate between armv6 and armv7, and instead uses arm as the {arch}. Until that is fixed, you will still need to install sqlite3 from source.

``

60

60

``

61

61

`Support for other platforms and architectures may be added in the future if CI supports building on them.

`

62

62

``

63

``

`` -

If your environment isn't supported, it'll use node-gyp to build SQLite but you will need to install a C++ compiler and linker.

``

``

63

`` +

If your environment isn't supported, it'll use node-gyp to build SQLite, but you will need to install a C++ compiler and linker.

``

64

64

``

65

65

`### Other ways to install

`

66

66

``

`@@ -148,8 +148,6 @@ NODE_WEBKIT_VERSION="0.8.6" # see latest version at https://github.com/rogerwang

`

148

148

`npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)

`

149

149

```` ```


`150`

`150`

``

`151`

``

`` -

This command internally calls out to [`node-pre-gyp`](https://github.com/mapbox/node-pre-gyp) which itself calls out to [`nw-gyp`](https://github.com/rogerwang/nw-gyp) when the `--runtime=node-webkit` option is passed.

``

`152`

``

`-`

`153`

`151`

`` You can also run this command from within a `sqlite3` checkout:

``

`154`

`152`

``

`155`

`153`

```` ```bash