Skip to content
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

Unmet dependency typescript 2.3.3 || ~1 #407

Open
GaikwadPratik opened this issue Jul 21, 2017 · 5 comments
Open

Unmet dependency typescript 2.3.3 || ~1 #407

GaikwadPratik opened this issue Jul 21, 2017 · 5 comments
Assignees
Labels

Comments

@GaikwadPratik
Copy link

GaikwadPratik commented Jul 21, 2017

While installing I am getting below error:

C:\Users\pratik\Documents\GitHub\CS810W2>npm install --save-dev grunt-ts
[email protected] C:\Users\pratik\Documents\GitHub\CS810W2\
+-- [email protected]
`-- UNMET PEER DEPENDENCY typescript@^2.3.3 || ~1

The typescript installed is 2.4.2.

C:\Users\pratik\Documents\GitHub\CS810W2>tsc -v
Version 2.4.2

The typescript is installed globally. Still getting the above issue. But when typescript is installed locally, this issue doesn't occur.

@nycdotnet
Copy link
Contributor

what version of npm do you have?

@GaikwadPratik
Copy link
Author

@nycdotnet 4.1.2

@nycdotnet
Copy link
Contributor

Thanks for the reply, @GaikwadPratik . I think this is a "problem" with npm - not really a bug but just something weird about how it works with peer dependencies vs things installed globally.

Is your concern that you are getting a warning you don't expect, or is grunt-ts not working with your global TypeScript?

If the latter, what is the problem with installing TypeScript in the project? That's typically the way I see things work best because it allows each project to have a stable TypeScript compiler version.

@GaikwadPratik
Copy link
Author

GaikwadPratik commented Jul 21, 2017

@nycdotnet I am getting issue with grunt-ts not working when TypeScript is installed globally. I understand that each project needs a stable TypeScript compiler but isn't that the whole point of installing TS globally. I was merely wondering why TS has to be duplicated when available globally?

@nycdotnet
Copy link
Contributor

Well to be honest I thought it would work with the globally installed TS if TypeScript wasn't there. I can't change the npm warning, but I agree this is a grunt-ts bug. I will investigate.

For now, install TypeScript locally.

@nycdotnet nycdotnet self-assigned this Jul 21, 2017
@nycdotnet nycdotnet added the bug label Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants