尝试启动Atom/核素时未找到流 [英] Flow was not found when attempting to start Atom/Nuclide
问题描述
我正在使用Atom
IDE的react-native
应用程序上工作.我在打开Atom
I am working on react-native
application for which I am using Atom
IDE. I am getting an error on opening Atom
我用npm命令安装了babel-cli
和babel-preset-flow
.
I installed babel-cli
and babel-preset-flow
with npm command.
npm install --save-dev babel-cli babel-preset-flow
npm install --save-dev babel-cli babel-preset-flow
现在,当我重新启动Atom
时,它向我显示相同的警告尝试启动时未找到流".谁能帮我解决这个问题.
Now when I restart Atom
then it shows same warning to me "Flow was not found when attempting to start". Can anyone help me how to fix it.
我已遵循以下 https://medium.com/react-native-training/getting-started-with-react-native-and-flow-d40f55746809 流量服务器运行良好,但是我如何向原子添加流量,因此可以摆脱这种情况 https://i.stack.imgur.com/7jJVI.png
I have followed this https://medium.com/react-native-training/getting-started-with-react-native-and-flow-d40f55746809 flow server is working well but how I add flow to atom so I can get rid from this https://i.stack.imgur.com/7jJVI.png
推荐答案
如果错误本身是您的关注点,并且您不想使用Flow或什至不知道它会做什么:
Nuclide -> Settings -> Flow
并取消选中:Warn when Flow is not found
确保已安装流程.由于流必须与.flowconfig
中指定的版本匹配,因此最好在本地而不是在全局安装它.
Make sure you've got flow installed. Since flow will have to be matched with the version specified in .flowconfig
it's a good idea to install it locally rather than globally.
例如,如果您的.flowconfig
说:
[version]
^0.40.0
npm install --save-dev flow-bin@0.40.0
然后Nuclide -> Settings -> Flow
并检查:Use the Flow binary included in each project's flow-bin
如果出现问题,请检查流量问题.
In case of issues, check flow issues.
这篇关于尝试启动Atom/核素时未找到流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!