[BUG] Missing minified files after second install
Open
Nobody has claimed this yet.
Bug
Needs Triage
Release 8.x
- Dominant language
- JavaScript
- Stars
- 10.1k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
Missing .min.js files.
Expected Behavior
Existing .min.js files.
Steps To Reproduce
- empty dir
npm initnpm i bignumber.js@9.0.1- Notice
.min.jsfiles are present innode_modules/bignumber.js/ - Delete
node_modulesand.package-lock.jsonso only file remaining ispackage.json npm i- Notice missing
.min.jsfiles are present innode_modules/bignumber.js/
Environment
- npm: 8.3.0
- Node: v16.13.1
- OS: Win10
- platform: desktop
- npm config:
; "builtin" config from C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\npmrc
prefix = "C:\\Users\\Alex\\AppData\\Roaming\\npm"
; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Developer\playground\npm
; HOME = C:\Users\Alex
; Run `npm config ls -l` to show all defaults.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two npm install sequences in an empty directory with bignumber.js@9.0.1, then compare the package contents after each install. Investigate why the second install omits the .min.js files; done means the files are present after reinstalling from package.json, with the reproduction no longer showing the discrepancy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100