2016-08-01 202 views
3

每當我做一個npm init然後npm install react - 我得到這個錯誤錯誤安裝陣營

──未滿足PEER DEPENDENCY [email protected]

NPM WARN [email protected]需要同行的反應@> = 0.13.0 < 1.0.0但沒有安裝。
npm WARN [email protected]需要一個 peer @@ = 0.13.0 < 0.15.0 ||^0.14.0-beta3,但沒有安裝 。
npm WARN [email protected]要求同行 [email protected]~15.2.0,但沒有安裝。
npm WARN [email protected] 需要[email protected]||0.14.x的同行,但沒有安裝。 npm ERR!代碼1

這是我的節點v6.3.0和npm 3.10.3版本。

回答

0
npm install react --no-optional 
+0

我得到這個錯誤未得到滿足的PEER DEPENDENCY [email protected] [email protected] │ └──[email protected] └──[email protected] –

0

內,您的項目目錄,可以請你先運行以下命令: -

1) rm -rf node_modules 
2) Try installig react again now and other packages which are in your package.json file.