Skip to content

doc: update npm install steps#484

Open
abmusse wants to merge 1 commit into
mainfrom
doc-npm-approve-scripts
Open

doc: update npm install steps#484
abmusse wants to merge 1 commit into
mainfrom
doc-npm-approve-scripts

Conversation

@abmusse

@abmusse abmusse commented Jul 2, 2026

Copy link
Copy Markdown
Member

With npm v12, npm install will no longer automatically run scripts from your package dependencies, but instead must be explicitly marked as allowed/trusted. This is to reduce the potential for malware and the effect of other recent supply chain attacks to be performed.

node-odbc uses node-pre-gyp to automatically install a pre-built node binding from the corresponding GitHub release or fall back to building it from source if a pre-built is not available. Starting with npm v12, the node-pre-gyp install script will no longer be run unless explicitly allowed using npm approve-scripts odbc.

Fixes #478

With npm v12. `npm install` will no longer automatically run scripts from your package dependencies, but instead must be explicitly marked as allowed/trusted. This is to reduce the potential for malware and the effect of other recent supply chain attacks to be performed.

node-odbc uses node-pre-gyp to automatically install a pre-built node binding from the corresponding GitHub release or fall back to building it from source if a pre-built is not available. Starting with npm v12, the node-pre-gyp install script will no longer be run unless explicitly allowed using `npm approve-scripts odbc`.

Fixes #478
@abmusse abmusse requested a review from kadler July 2, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: Update npm install instructions for npm >= 12

1 participant