-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[BUG] npm install does not run prepare script for local file dependencies #459
Comments
The same thing is happening to me. I also tried to install I have |
Any updates? |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
1 similar comment
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
What / Why
Imagine I have
package-a
that depends on thepackage-b
using thefile
specifier.For example we have this dependency line in the
package.json
ofpackage-a
:How
Current Behavior
If I run
npm install
inpackage-a
then npm correctly installspackage-b
dependencies.But it only runs
preinstall
andpostinstall
scripts and ignoresprepare
script.If I run
npm install
directly inpackage-b
then it successfully runs theprepare
script.Expected Behavior
It should run prepare script for local dependencies (
package-b
) like it would forgithub
dependencies. This gets very confusing for npm users asnpm install
would run inconsistent scripts for different dependency types.References
I think #321 is related but it seems fixed in the latest version.
npm version
I use node
v12.13.0
and npm6.13.0
The text was updated successfully, but these errors were encountered: