Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Remove peerDependencies #71

Closed
monolithed opened this issue May 16, 2015 · 8 comments
Closed

Remove peerDependencies #71

monolithed opened this issue May 16, 2015 · 8 comments
Labels

Comments

@monolithed
Copy link

npm WARN peerDependencies The peer dependency karma@>=0.9 included from karma-phantomjs-launcher will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

In short, peerDependencies should probably be removed:
See for context: npm/npm#6565

@dignifiedquire
Copy link
Member

I don't think we will remove peerDependencies. As you can see in the discussion in npm/npm#6565 peerDependencies will still lock down the version you are using together with the plugin (i.e. the version of karma combined with karma-phantomjs-launcher). The only difference that there will be is that when you install karma-phantomjs-launcher on its own it will not automatically pull down a version of karma, which is actually a good thing.

@lookfirst
Copy link

It would be nice to not have to see that warning every time I run npm install.

@MarkLeMerise
Copy link

I think I am confused. Shouldn't phantomjs be a direct dependency since it is used directly by the plugin? The plugin would fail to load without it, no?

@anthonyhastings
Copy link

Yeah I'm also confused on this, so whenever NPM v3 releases, will end users of this package be expected to install PhantomJS themselves? e.g.

"devDependencies": {
    "karma-phantomjs-launcher": "0.2.0",
    "phantomjs": "1.9.17"
}

In my opinion this would be a good thing to do as it'll allow people to swap out to PhantomJS 2.0 easily (depending of course on any API / interfacting problems with this package).

@dignifiedquire
Copy link
Member

@antwan1986 yes that is exactly the idea.

@anthonyhastings
Copy link

Sounds awesome!

@mpelzsherman
Copy link

Won't keeping peerDependencies will prevent users from upgrading to npm 3.X? I'm fairly new to npm so I might be confused on this issue. Thanks!

@monolithed
Copy link
Author

It seems we should close the issue.
Flat package structure in npm 3 is awesome 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants