{"id":18739605,"url":"https://github.com/springmeyer/bundle-dedupe-testcase","last_synced_at":"2025-11-19T13:30:18.042Z","repository":{"id":66365736,"uuid":"90767676","full_name":"springmeyer/bundle-dedupe-testcase","owner":"springmeyer","description":"Testcase replicating bad interaction between node v6/npm 3 and node-pre-gyp ","archived":false,"fork":false,"pushed_at":"2017-05-16T20:37:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T18:28:24.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/springmeyer.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-09T16:25:55.000Z","updated_at":"2017-05-09T16:32:05.000Z","dependencies_parsed_at":"2023-02-20T16:15:40.046Z","dependency_job_id":null,"html_url":"https://github.com/springmeyer/bundle-dedupe-testcase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fbundle-dedupe-testcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fbundle-dedupe-testcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fbundle-dedupe-testcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fbundle-dedupe-testcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/springmeyer","download_url":"https://codeload.github.com/springmeyer/bundle-dedupe-testcase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239619570,"owners_count":19669447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T15:36:28.502Z","updated_at":"2025-11-19T13:30:17.993Z","avatar_url":"https://github.com/springmeyer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/springmeyer/bundle-dedupe-testcase.svg?branch=master)](https://travis-ci.org/springmeyer/bundle-dedupe-testcase)\n\nThis testcase replicates an error of:\n\n```\nnpm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1\n```\n\nThat happens with node v6.10.3 and npm v3.10.10 when `npm ls` is run after install of the module. What appears to be happening is that:\n\n - The module depends on `minimist@~1.2.0`\n - The module depends on `node-pre-gyp` which depends on `mkdirp@^0.5.1`\n - `mkdirp@0.5.1` is pinned exactly to `minimist@0.0.8`: https://github.com/substack/node-mkdirp/blob/f2003bbcffa80f8c9744579fabab1212fc84545a/package.json#L19\n - During npm install the `mkdirp` is installed in the node-pre-gyp modules folder\n - With node v0.10, v4, and v7 the `minimist@1.2.0` is installed at the top level and `minimist@0.0.8` is installed within the `mkdirp` dependended upon my `node-pre-gyp`.\n - With node v6 the `minimist@1.2.0` is installed at the top level and `minimist@0.0.8` is NOT installed within the `mkdirp` dependended upon my `node-pre-gyp`.\n - During npm install `node-pre-gyp` is run and the `mkdirp` appears to work at runtime with all versions of node despite the deduping problem with node v6\n - Npm runs `prepublish` during install - context at https://github.com/npm/npm/blob/latest/CHANGELOG.md#new-prepare-script-prepublish-deprecated-breaking\n - With node v6 the `npm ls` that is run during `prepublish` (which is automatically run by npm at the end of the install) errors since the pinnned `minimist@0.0.8` is missing.\n\nThe tree that `npm ls` is outputs (when it returns an error with node v6) is:\n\n ```\n └─┬ node-pre-gyp@0.6.34\n  ├���┬ mkdirp@0.5.1\n  │ └── UNMET DEPENDENCY minimist@0.0.8\n ```\n\nThis does not happen with node v7 and npm v4.2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmeyer%2Fbundle-dedupe-testcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringmeyer%2Fbundle-dedupe-testcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmeyer%2Fbundle-dedupe-testcase/lists"}