Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

deps: dedupe deeply nested bundled modules #11527

Closed
wants to merge 1 commit into from

Conversation

MylesBorins
Copy link

The current tree includes a bunch of nested modules which are causing
the CI build for Node.js to not work on windows.

A bit of forensics found that the tree in
npm/node_modules/npm-install-check/node_modules/npmlog/node_modules/gauge
is much larger in the latest release due to duplicated modules.

This commit used npm@3 to dedupe node_modules/npm-install-check
resulting in a much shallower tree.

npm ls still runs cleanly

I have testing this patch applied locally to the npm repo and make test-npm passes all green.

I have also run "npm test" locally inside of the npm repo and we are getting all green with a single failure
test/tap/00-verify-bundle-deps.js which appears to be present on the head of 2.x

edit: it is also worth mentioning that the node distro is building as expected in windows with this patch applied

The current tree includes a bunch of nested modules which are causing
the CI build for Node.js to not work on windows.

A bit of forensics found that the tree in
`npm/node_modules/npm-install-check/node_modules/npmlog/node_modules/gauge`
is much larger in the latest release due to duplicated modules.

This commit used npm@3 to dedupe node_modules/npm-install-check
resulting in a much shallower tree.

`npm ls` still runs cleanly
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants