[BUG] preinstall script with npx does not work with --package-lock-only #4595
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
A preinstall script using
npx
fails when master commandnpm install --package-lock-only
is fired.It works when master command is
npm install
Behaviors differs between npm 6.x & npm 8.x but none are correct.
Expected Behavior
npm install --package-lock-only
shoud be successfull and should execute correctly the presinstall script.Steps To Reproduce
mkdir reproducer && cd reproducer
nvm use 16
node v16.14.0 (npm v8.3.1)
rm -rf ~/.npm/_npx
using a clean npx cachenpm install --package-lock-only
failsEnvironment
The text was updated successfully, but these errors were encountered: