Leo*_*hiu 4 npm flowtype react-native
我创建了一个react native项目,并希望为我的项目启用流程。
我安装了流槽
npm install --save flow-bin
Run Code Online (Sandbox Code Playgroud)
但是,它返回
missing script: flow
Run Code Online (Sandbox Code Playgroud)
当我跑步时
npm run-script flow
Run Code Online (Sandbox Code Playgroud)
有人知道吗?谢谢!
npm run-script flow will not execute the flow command, but will just look into the scripts entry in the package.json file and execute the command under the flow entry (see the documentation for more information). This has the advantage that it will include binaries located in your dependencies (a.k.a. binaries inside the node_modules folder), which is something you usually do not have in your $PATH, avoiding the need to configure that for every project. Make sure that your package.json looks something like this:
//...
"scripts":{
//...
"flow": "flow; test $? -eq 0 -o $? -eq 2"
}
//...
Run Code Online (Sandbox Code Playgroud)
Source: docs
| 归档时间: |
|
| 查看次数: |
3254 次 |
| 最近记录: |