0

I was running npm install to install only 1 package called generator-angular

npm install --global generator-angular

you have no idea how many dependencies this npm have checked, it is still rolling I will just pick a few

npm http GET https://registry.npmjs.org/generator-angular
npm http 304 https://registry.npmjs.org/generator-angular
....
npm http 304 https://registry.npmjs.org/diff
npm http 304 https://registry.npmjs.org/strip-ansi

are these really dependencies ? like diff ansi? or am I making some mistakes ?

asked May 16, 2014 at 14:24
3
  • did you end up with an error? Commented May 16, 2014 at 14:32
  • 1
    @pka2012 not yet, it's just slow and last for hours. some of the sources are extremely slow here within GFW. Commented May 16, 2014 at 14:35
  • That's just the modularity of packages on npm and is fairly common. In fact it's arguably better that way to have a package to "one" thing and "one" thing well. Commented May 16, 2014 at 14:49

1 Answer 1

1

Yes, those are all real dependencies. generator-angular is a particularly heavy module.

One thing to note is that many of them are "peer dependencies". This means that they are installed next to, rather than inside, generator-angular. This allows them to be shared by your application as well as other modules with peer dependencies. So in addition to generator-angular, you are getting access to generator-karma, grunt-cli, bower, and yo.

If you are depending on any of these already, make sure you are installing all of your modules in the same place so they don't get installed multiple times.

answered May 16, 2014 at 15:00
Sign up to request clarification or add additional context in comments.

1 Comment

@zinking Like I said, make sure they're installed in the same place. Did you install yo and bower globally as well?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.