Little utility to ease troubleshooting why installing npm dependencies takes too long.
The "publish size" is the size of the source code published to npm. This number is easy to detect and should be pretty small.
The "install size" is the size your hard drive will report after running npm install. This includes the package, all of the dependencies, and its dependency's dependencies...and so on.
npx why-npm-i-so-long path/to/package.jsonnpm install --global why-npm-i-so-longSee install size of dependencies
why-npm-i-so-long path/to/package.jsonSee install size of devDependencies
why-npm-i-so-long path/to/package.json --dev