-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Installing failed karma@0.10.9 #940
Comments
👍 |
Yup - having this too - can't seem to find a reason for it |
This is really really really annoying. Can anyone find at least a workaround to this? |
I think what is happening is karma has a peer dependency for karma-coffee-preprocessor with a wildcard version, meaning it will download the latest, which is currently 0.2.0. Version 0.2.0 of karma-coffee-preprocessor has a peer dependency "karma": ">=0.11.14" Hence causing the issue. It's not a solution, but I think its the problem. As far as I am aware the only solution is to upgrade to karma 0.11.14 or greater. |
That's clearly it but IMHO, NPM should fetch a |
👍 |
1 similar comment
👍 |
@Belelros I'm not convinced npm itself is doing anything wrong here. I feel its more of an oversight of the authors of karma, surely having a wildcard as a version will eventually catch you out, as it has done here. |
I have upgraded to the new versions to work around this. My {
"dependencies": {
"grunt": "~0.4.2",
"grunt-karma": "~0.7.2",
"karma": "^0.11.14",
"karma-chrome-launcher": "^0.1.2"
}
} don't forget to add |
@just-boris it seems you're using the unstable version? |
@Belelros what version is an unstable? |
Karma 0.11 is unstable AFAIK. That's why |
Oh, you a right. But now this version looks more stable than 0.10.x, because it is just working 😃 |
Right now I can't find any way to install the combination of karma and gulp-karma. npm install karma: installs fine npm install karma@0.11.x: installs fine npm install karma@0.10.x: |
I'm experiencing the same problem with the combination of karma and grunt-karma. |
To keep using karma 0.10 you can do this:
|
The fix suggested by @romario333 should solve it. This is also a good use case for |
@stuplum is right. Can you install the latest Karma 0.12? Also, you can specify concrete deps in your // package.json
{
"devDependencies": {
"karma": "0.10.9",
"karma-coffee-preprocessor": "0.1.3"
}
} And then Let me know if this works. |
I'm sorry to cause you troubles, NPM is really not great for this kind of stuff. I'm still trying to figure out what's the cleanest way to deal with all the dependencies. Anyway, 0.12 does not ship with any plugins and rather Also, please depend on minor versions and you should be fine, that is |
The latest karma and grunt-karma node modules were causing problems. Upgrading to karma 0.12.0 and grunt-karma 0.8.0 and locking those versions in appears to solve the issue for now. karma-runner/karma#940
The problem is not with NPM but with karma's declaration of |
https://github.com/fivetanley/karma/blob/fix-karma-coffee-preprocessor-dependency/package.json#L158 Would be a great, simple fix for the coffee-script issue. Ideally, we should do it in all of those fields to not break other people's projects. |
Breaking change? |
@fivetanley, yes it would be much better to specify exact versions. That's how it used to be and so many people were complaining because they couldn't use the version they wanted. The "*" was basically a hack to allow people install whatever they want (which you can do, see my previous comment). Anyway, all these peer deps are gone, so I think this should not be issue again. @feltnerm yep that is a breaking change. It is noted as a breaking change in the changelog, it is also noted in the migration guide. Before reaching 1.0, Karma uses even minor versions (0.8.x, 0.10.x, 0.12.x) for stable releases, you should depend on these (such as |
You wouldn't want to specify exact versions, just compatible versions. So you could use a range, like |
@fivetanley I don't think your fix fixes anything. The change you made is just devDep which is uses for testing. It won't effect people installing karma from NPM at all. |
@vojtajina Oh whoops, if you put that in |
@vojtajina What is the roadmap to a 1.0.0 release? Before such a release it is very hard to define that you want a compatible release of Karma or not – both for plugins and others. And any chance for maintenance releases for 0.9 and 0.10 with a more strict peer dependency, as suggested by eg. @fivetanley? Or do users have to either upgrade to the new 0.12 version or opt to fix the issue by doing one or both of the mentioned solutions:
|
There is no peerDep anymore. I can probably push 0.10.10 with peerDeps set to a range to avoid the coffee-preprocessor problem |
Yeah, sorry I didn't mention that. I meant a new version to fix for |
@fivetanley that's great idea, I'm doing that right now.... |
Excellent! Thank you! 😄 |
@vojtajina Friendly tip if you haven't published old versions before (stumbled upon it myself recently) – beware of npm/npm#2407 and don't just publish it as usual to npm – it will be interpreted as the latest version – instead publish it with a tag |
We removed these default plugins in 0.12. There are incompatible changes in coffee-preprocessor 0.2.0 (and might be other incompatible changes with 0.10) so I think it's better to freeze the deps. Closes #940
@voxpelli thanks for friendly tip, I did this in the past ;-) |
All right, I pushed 0.10.10 that should fix this. Thanks for all the help @voxpelli @fivetanley |
@voxpelli I think the last big thing for 1.0 is parallelization. I would also like to make the interfaces between karma/plugins more clear/strict (to avoid breaking changes, because right now plugins can do anything, which means they can also depend on any internal API). I'm not sure how to tackle yet... |
Right now doing a "npm install karma" installs 0.10.10. |
Works for me, |
Yep, now it works fine for me too, weird. After you pushed 0.10.10 the NPM page was showing 0.10.10 as well (https://www.npmjs.org/package/karma), now it shows 0.12.0 as expected. |
Hi there, This problem seems to have returned, somehow. I'm trying to install the AngularJS sample project for the official tutorial, but this error...
...occurs (despite the karma version being 0.10.10). Any idea how I can fix this? |
I think you need to first update karma-requirejs, you probably have some npm install --save-dev karma-require On Tue, Mar 18, 2014 at 7:41 PM, Jamie notifications@github.com wrote:
|
Thanks for that :) |
I am seeing this problem with
Gives:
|
Installing failed karma@0.10.9
karma-coffee-preprocessor@0.2.0 wants karma@>=0.11.14
and karma's package.json
"karma-coffee-preprocessor": "*"
The text was updated successfully, but these errors were encountered: