diff --git a/README.md b/README.md index 7559fa1..775b70b 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,27 @@ When all these steps have been completed, install `node-odbc` into your Node.js ```bash npm install odbc ``` + +--- +🚨🚨🚨 + +**NOTE:** starting with version 12, npm will no longer run install scripts by default. When installing, you will see a message like this: + +```sh +npm warn install-scripts odbc@2.5.0 (install: node-pre-gyp install --fallback-to-build) +``` + +We use [node-pre-gyp](https://github.com/mapbox/node-pre-gyp) to download prebuilt binaries or build from source for platforms which don't have prebuilt binaries. +You will need to approve the install script in order to use the odbc package. After approval, you will need to re-trigger the install script for odbc to work. + +```bash +npm approve-scripts odbc +npm rebuild odbc +``` +Once it has been approved and your package.json is updated, future installs will just work. + +For more information refer to the [npm blog post](https://github.blog/changelog/2026-06-09-upcoming-breaking-changes-for-npm-v12/). + --- ## Debugging