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
This is not just a request to bump a dependency for a CVE
This is not solely a request to bump a dependency for a CVE
Current Behavior
npm 12.0.2 prompts with "Run npm install -g --allow-scripts=<package> to allow these scripts once" which does not work.
$ npm install -g esbuildadded 2 packages in 3snpm warn install-scripts 1 package had install scripts blocked because they are not covered by allowScripts:npm warn install-scripts esbuild@0.28.1 (postinstall: node install.js)npm warn install-scriptsnpm warn install-scripts Run `npm install -g --allow-scripts=esbuild` to allow these scripts once, or `npm config set allow-scripts=esbuild --location=user` to allow them for all global installs.
$ npm install -g --allow-scripts=esbuildnpm error code ENOENTnpm error syscall opennpm error path /tmp/tmp.j1pwe1SPOy/package.jsonnpm error errno -2npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/tmp/tmp.j1pwe1SPOy/package.json'npm error enoent This is related to npm not being able to find a file.npm error enoent
The second option npm config set allow-scripts=esbuild --location=user does however work as described.
Expected Behavior
The prompt should provide instructions that work, and possibly it should be changed to start with:
Run npm install -g <package> --allow-scripts=<package>
Steps To Reproduce
Execute the following:
cd$(mktemp -d)
npm install -g esbuild
Environment
npm: 12.0.2
Node.js: 26.5.1
OS Name: Ubuntu 26.04.4 LTS
System Model Name: HP x64 desktop
npm config:
; node bin location = /home/mike/n/bin/node; node version = v26.5.1; npm local prefix = /tmp/tmp.j1pwe1SPOy; npm version = 12.0.2; cwd = /tmp/tmp.j1pwe1SPOy; HOME = /home/mike; Run `npm config ls -l` to show all defaults.
Activity
feat(install): scriptless native base — better-sqlite3 13, claude-e u…
feat(install): install-integrity core — runtime gate, doctor check, i…
feat(install): user surfaces — allow-scripts in installers, Windows b…
test(install): contract suites, 3-OS scriptless CI smoke, install-int…