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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Is this preinstall script meant to run before npm tries to install private packages? I have been trying to do a similar thing but it seems preinstall is only run after dependency installation.
The blog post was written with npm v6 in mind and I was unaware of this change with npm v7. Thanks for bringing this to my attention! I'll do some digging and post an update.
bb2c74f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ryansonshine. I found this repo from your blog post.
Is this
preinstall
script meant to run before npm tries to install private packages? I have been trying to do a similar thing but it seemspreinstall
is only run after dependency installation.Here's an explanation from npm themselves.
bb2c74f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tewson-brightflag !
The blog post was written with npm v6 in mind and I was unaware of this change with npm v7. Thanks for bringing this to my attention! I'll do some digging and post an update.
bb2c74f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryansonshine Appreciate the speedy response! 👍
bb2c74f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anytime! I'm drafting up an RFC but am still bouncing between whether or not we should make a push for this being a bug with
npm
.In the interim, I'll post an update on the blog to communicate that this pattern will not work for npm v7.