所以这是我第一次使用React,我不知道这意味着什么。关于它的谷歌也没有很多有用的信息。有人能帮忙吗?
josh@josh:~/Documents/node/JuiceBar$ npm start
> JuiceBar@0.1.0 start /home/josh/Documents/node/JuiceBar
> react-native-scripts start
20:13:59: Unable to start server
See https://git.io/v5vcn for more information, either install watchman or run the following snippet:
sudo sysctl -w fs.inotify.max_user_instances=1024
sudo sysctl -w fs.inotify.max_user_watches=12288
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! JuiceBar@0.1.0 start: `react-native-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the JuiceBar@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/josh/.npm/_logs/2018-05-23T00_13_59_395Z-debug.log
答案 0 :(得分:0)
我找到了一个解决方法(我拒绝称之为答案,因为我无法在不安装其他模块的情况下使其工作,除非此模块是响应的依赖,然后从技术上来说它是一个答案)。我通过以下命令安装了守望者。
sudo npm install watchman --save