2016-08-01 200 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.