2016-11-09 242 views
0

我是新的使用npm,我想安裝一個插件,我得到下面的錯誤,我明白,插件requieres角2.1.2和我使用2.0.1。 如何在不更新角度的情況下解決問題?我認爲插件不取決於角度版本。 謝謝!npm - 錯誤安裝插件

npm ERR! peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements! 
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected] 
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected] 
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected] 
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected] 
npm ERR! peerinvalid Peer [email protected] wants @angular/[email protected]^2.1.2 
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc 
+0

看看這個:https://futurestud.io/tutorials/how-to-fix-npm-package-does-not-satisfy-its-siblings-peerdependencies-requirements –

回答

1

我們有這個問題,這是因爲你的npm舊版本。嘗試更新它作爲

npm install npm -g

這個錯誤應該走開!