我在尝试为React-Native安装新项目时遇到问题。它与此挂在一起:

[email protected]` requires a peer of react@~15.3.1 but none was installed.
npm verb exit [ 0, true ]
npm info ok


而且它永远那样。

npm 3.10.7
node 6.2.1

最佳答案

我也遇到了这个问题,可以确认问题是守望者。我曾使用自制软件卸载/重新安装,但仍然遇到相同的问题。我要解决的步骤如下:


用自制软件卸载Watchman
删除/usr/local/var/run/watchman/文件夹的内容
用自制软件重新安装watchman


我能够找出从以下两个github问题中删除watchman文件夹内容的额外步骤:
 -https://github.com/facebook/watchman/issues/361
 -https://github.com/facebook/watchman/issues/358#issuecomment-246672605

10-08 12:25