-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git dependency prepare script running with --package-lock-only #3300
Comments
The same bug is reported here: #2920 but would be helpful if it's possible to disable running |
#2920 is a slightly different bug. I could see disabling prepares when Will be fixed when npm/pacote#81 lands. |
#1422 may also be related |
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 npm@7.14.0
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: