You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] NPM passes the --ignore-scripts option to all dependencies. #6519
I install a package of my own that contains sqlite3 which itself contains an install script. When I run npm ci --ignore-scripts in my project, the sqlite3 does not execute the install script.
Expected Behavior
Running npm ci --ignore-scripts should only ignore the scripts in my packages.
; "user" config from /home/fran/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; "project" config from /home/fran/Projects/loopback-next/.npmrcpackage-lock = true
scripts-prepend-node-path = true
; node bin location = /usr/bin/node; node version = v18.15.0; npm local prefix = /home/fran/Projects/loopback-next; npm version = 9.6.7; cwd = /home/fran/Projects/loopback-next; HOME = /home/fran; Run `npm config ls -l` to show all defaults.
Activity
ljharb commentedon Jun 2, 2023
The primary purpose of the flag is to ignore scripts in installed deps imo.
wraithgar commentedon Jun 6, 2023
This is not a bug this is by design and as stated is the original purpose behind the flag.