-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for NPM 3+ #4
Comments
@siddharthkp hmm, I'm not sure-- I use NPM 2, so it always does that for me by default. In NPM 3, all of your dependencies are on the top level, so I definitely could see how that'd cause trouble :/ I'm down to set up something to solve that problem, probably'll want to do it as a pass which recursively crawls the package.json files (trying for the nested node_modules folders first for npm 2 support, and then falling back to the higher level node_modules folders for npm 3 support). The idea being to get where we've got a dictionary mapping package identifiers/installed versions to where they're located, relative from the top-level directory (e.g. So.. ick. I think I can do it, but it'd be good to have a bit more insight on exactly where NPM 3 can put things first (something that's plaguing me as far as the auto |
@mikerncneil Hey, I ended up creating one of my own! https://github.com/siddharthkp/cost-of-modules Feedback welcome :) |
@siddharthkp sweet! I'll check it out |
Hey, landed here from (this comment on the npm repo)[https://github.com/npm/npm/issues/10361#issuecomment-247862042]
When I run
kit deps
in my repo, i only get size of modules in mypackage.json
, not the modules that these depend on internally. Basically, only one level of depth.Ideally, this should follow the tree down till the last node of the tree to calculate the actual size?
Please correct me if I misunderstood 😄
I'm on node 6.4.0 and npm 3.10.7
Using this on auto-install
The text was updated successfully, but these errors were encountered: