Unmet Peer Dependency typescript@>=1.6.2 #815
Comments
peer dependencies are not installed automatically by npm v3.x (they were automatic in 1.x and 2.x). have you installed UpdatePasting the "solution" here so you don't have to scroll to see it: This is an NPM usability bug. The only solution is to install concurrently:
|
I installed both tslint and typescript at the global level. Current typescript version 1.6.2 I am also trying to do this on Windows. |
Getting the same problem on clean install on OSX using Brew distribution of This does not appear to happen on my CentOS box. Here is to reproduce using custom prefix (so i don't need to blow away my existing modules):
|
Is it just a warning that's produced here? Or is your global |
After playing with it for a bit, it seems like |
also having the same problem |
@adidahiya worth noting that
which means that if you are using a pre-release (or whatever term
However, the
which is perfectly happy with the pre-release version. Again, this warning can simply be ignored. But worth noting for those people now trying to install Unless you're happy including the pre-release peer dependency options in main releases of |
@myitcv yeah we thought about this a little bit... I'd prefer to keep tslint stable releases tied to typescript's stable releases, and if users want |
@adidahiya but this happening with current stable typescript release |
@helios1138 it's just an error though, right? does your |
@helios1138 - if you are installing both globally, this is likely an @adidahiya understood. Look forward to the |
@gclifford @helios1138 can you try running |
I'm having some problem with it, npm gives me that warning when installing, it doesn't with
Any ideas how to fix even after |
@Luchillo looks like you only installed gulp-tslint and not tslint there |
Did it get separated? why with v3.6.0 still works? as far as i understand gulp-tslint is a wrapper for tslint npm package, doesn't it? |
@Luchillo no, it's not a wrapper, it's a gulp plugin. the latest gulp-tslint has tslint as a peer dependency, so tslint doesn't get installed automatically. you need to |
Oh as i just used v3.6.0 before i didn't know about the change, but it should be installed in local project, global or both? Also the peer dependency for tslint@3.1.1 says unmet as well, even with typescript installed:
|
@Luchillo gulp-tslint has updated its version to 4.x, which means there are breaking changes from 3.x. as for the "unmet peer dependency" warning, that's what the above thread is about -- I think it's an NPM bug. does it go away if you uninstall, run |
@adidahiya
|
It's weird. It's either an UNMET PEER DEPENDENCY or extraneous, see below. So you have to choose between two errors. If you really dislike capitalization you can do
|
Same issue here with Ubuntu and npm 3.3.12
|
Just wanted to report the same issue on Windows 10, node 5.7.1, npm 3.5.3 and typescript 1.8.7:
|
I have the same issue on Win 8 with TypeScript 1.8.7 C:\Windows\system32>npm install -g tslint npm WARN EPEERINVALID tslint@3.5.0 requires a peer of typescript@>=1.7.3 but non |
Just chiming in to say I have the same issue on OSX with node v5.7.0 and npm 3.6.0 |
I've got the same issue on OS X with npm 3.7.3 |
I think this is an NPM usability bug, the only solution being to install the peers concurrently: related: npm/npm#9857 |
Installing them concurrently seems to work, none warn message! thank you @adidahiya |
An update on this, I have this issue, with typescript Version 1.8.10. |
@adidahiya it seems that tslint is currently not installable together with the typescript 2.1.0-dev release on NPM 2 due to the peer dependency failing (see #1401). is there a workaround for this other than forcing TravisCI (and our devs) to use NPM 3 for older Node releases? |
@Turbo87 hmm, are you sure? This line seems to suggest that 2.1.0-dev would work: https://github.com/palantir/tslint/blob/next/package.json#L49. Do you know NPM v2 is doing differently here? |
ah, so the thing is that we've been using the |
@Turbo87 It was intentional, although it's an unfortunate byproduct of how we do releases. Any release ending in Any non If you want to depend on the most recent versions of TSLint that go with the most recent versions of TS, I'd recommend either depending on |
@jkillian thanks for the clarification! since peer dependencies are only informational in NPM v3 and are causing these unexpected issues in NPM v2 would it make sense to replace the peer dependency with a compatibility note in the README file instead? |
Hmm, perhaps I misunderstand, but isn't your issue resolvable just by changing how you specify the dependency on TSLint? I'm hesitant to remove the peerDepedendency because, while mainly informational, it does represent the correct TS versions that each package is designed to work with. |
yes, pinning the dependency would solve the issue, but obviously we won't get any updates that way.
two comments on that:
I'm fine with whatever you decide is the best solution, I'd just like to understand it... 😉 |
We could even go as far as to publish in two different packages, but I feel like that's a pain for third-party libraries that integrate TSLint and for users.
Well, the two versions are mostly the same, but there may be they are a little bit diverging. The I'm worried if the peerDependency was removed, people would end up with non-compatible versions of TS and TSLint installed and not know what was going on. Things as they are right now aren't perfect either though as you correctly point out, so I'm unsure of the best solution. |
It would be nice if |
This also crashes Edit: npm 3.10.x |
+1
|
Can't start to work it together with vscode 1.4.0
Error is appear at the top of vscode: Failed to load tslint library. Please install tslint in your workspace Tried to set "tslint.enable": true|false (in userspace and workspace) - it didn't help.
Any advice? |
I changed my "devDependencies": {
"tslint": "3.15.0-dev.0",
"typescript": "^2.1.0-dev.20160827"
}, |
Closing this issue as it's an NPM issue and outside of our control |
🤖 Beep boop! 👉 TSLint is deprecated 👈 and you should switch to typescript-eslint! 🤖 🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋 |
I am trying to install tslint 3.0.0 but it keeps saying "Unmet Peer Dependency typescript@>=1.6.2"
How do I get this to go away?
The text was updated successfully, but these errors were encountered: