-
Notifications
You must be signed in to change notification settings - Fork 26
BUG: on npm 2 builder postinstall
fails if builder package includes another builder package
#30
Comments
After much experimentation, my conclusion is that In short: we need to find where /cc @ryan-roemer |
I'll test this out in a similar setup to the npmv3 thing soon. Forward-looking note -- Once Chase lands |
Confirmed. In clean directory on Error
It is likely a builder path issue, so let's keep this issue going and close the archetype one. Notes
|
|
Interesting, so... {
"cwd": "/Users/rye/Desktop/TEMP_2/node_modules/victory-axis/node_modules/victory-label",
"dir": "/Users/rye/Desktop/TEMP_2/node_modules/victory-axis/node_modules/builder/lib"
} on an install means that the |
@ryan-roemer Is |
@exogen -- Where is the dedupe documentation for npm v2? I was under the impression it kept the entire child dependency tree, but haven't ever looked into this... |
@ryan-roemer I searched last night and couldn't find any 😩 ...but the example in my comment above with packages A+B+C was tested with some minimal |
Note I also searched the old npm 2 CHANGELOG for any mention of this behavior, and couldn't find anything there either. I'm led to believe it's just been this way, and most of the time the tree is intact just because deps have different versions. |
@ryan-roemer Hmm, if you search for "dedupe" here, it looks like npm has always done a basic form of this, even as far back as 1.x. ( |
I always thought that was a separate manual command (https://docs.npmjs.com/cli/dedupe). But it definitely looks like it's happening here! |
On repos like axis that are on builder infrastructure,
npm install
will fail onbuilder postinstall
if these packages include other builder packages.failing CI in this PR is an example:
FormidableLabs/victory-axis#40
victory-label
is using builderThe text was updated successfully, but these errors were encountered: