angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

UNMET PEER DEPENDENCY [email protected]

Open 281330 opened this issue 10 years ago • 10 comments

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Linux Mint
  2. Versions. Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here: 1.0.0-beta.11-webpack.2
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc. This is an app created using angular-cli. All I am doing is running npm install
  4. The log given by the failure. Normally this include a stack trace and some more information. UNMET PEER DEPENDENCY [email protected]
  5. Mention any other details that might be useful.

Thanks! We'll be in touch soon.

Here's the result of npm list typescript

├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected] 
└── UNMET PEER DEPENDENCY [email protected]

npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]

281330 avatar Aug 18 '16 04:08 281330

angular-cli: 1.0.0-beta.11-webpack.2 node: 4.4.3 os: win32 x64 windows 10 ng init I'm getting the same

mangopop avatar Aug 18 '16 08:08 mangopop

Hi, something does not work? I have the same warning, but app runs fine.

neilhem avatar Aug 18 '16 09:08 neilhem

Just done some testing and the app does seem to run ok.

mangopop avatar Aug 18 '16 09:08 mangopop

I think this is a spurious message because of unfixed messiness in the various underlying libraries. Once the versions stabilize (i.e.. the various libraries are updated and reconciled to agree on what TypeScript version they want), these messages should go away. In the meantime, I've been using TypeScript 2.0.0 and getting good results, while ignoring messages that complain about an UNMET PEER DEPENDENCY for something that is sitting right there...

kylecordes avatar Aug 18 '16 12:08 kylecordes

+1

alo avatar Aug 19 '16 05:08 alo

Peer dependency warning will be around for a bit while the ecosystem adapts to the new Typescript and Node versions.

They should be warnings however, not errors - try updating to NPM3 and they should be listed as warnings.

filipesilva avatar Aug 23 '16 13:08 filipesilva

I have npm3 but these show as ERRors not warnings:

➜  ng-challenge git:(master) ✗ npm --version
3.10.6
➜  ng-challenge git:(master) ✗ npm list typescript
[email protected] /Users/sci-lmw1/Documents/dev/ng-challenge
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected] 
└── UNMET PEER DEPENDENCY [email protected]

npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]

Am I missing something, or do I still just ignore this?

lindsaymarkward avatar Aug 29 '16 07:08 lindsaymarkward

same here...

iBasit avatar Sep 08 '16 02:09 iBasit

Try to update to the latest version [email protected]

neilhem avatar Sep 08 '16 03:09 neilhem

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.