FBPX
您所查看的文档没有与当前语言匹配的版本,因此我们将显示默认语言的版本。
Installs the dependencies of a flow file.
Prior to installation make sure the current directory (or one of it's ancestors) contains a package.json.
Create a package json if it does not exist yet.
$ npm init -y
Example flow containing a node which uses a dependency (In this case superagent)
title: Example flow
provider https://api.fbpx.io/v1/nodes/rhalff/{ns}/{name}
Request(superagent/get)
'http://example.com' -> url Request
Request request -> request EndRequest
Request body -> msg Log(console/log)
Install the dependencies:
$ fbpx install example.fbp
+ superagent@3.8.3
added 24 packages from 22 contributors and audited 25 packages in 2.168s
found 0 vulnerabilities
In this case there is only one dependency. Dependencies are however searched for recursively and all required dependencies will be installed automatically.
To get more information you can set DEBUG to * and use the verbose flag.
$ DEBUG=* fbpx install example.fbp --verbose