Git dependency prepare script running with --package-lock-only #3300
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
👋 I've just run into this in dependabot when trying to update
discord.js
. The following command fails:npm install discord.js@github:discordjs/discord.js#b376f31af9881b9cd3f82ac4a42a468947cce482 --ignore-scripts --package-lock-only
with:It looks like this prepare script is running with the above install. It passes without
--package-lock-only
.There is a similar issue about the projects lifecycle hooks but this seems subtly different as it's about git dependencies: #2787
Expected Behavior
The command
npm install discord.js@github:discordjs/discord.js#b376f31af9881b9cd3f82ac4a42a468947cce482 --ignore-scripts --package-lock-only
should successfully install.Steps To Reproduce
npm install -g [email protected]
npm install discord.js@github:discordjs/discord.js#b376f31af9881b9cd3f82ac4a42a468947cce482 --ignore-scripts --package-lock-only
Environment
The text was updated successfully, but these errors were encountered: