You can find more information about this pipeline tool at nextflow.io. The typical installation of Nextflow looks like this:
curl -fsSL get.nextflow.io | bash
mv ./nextflow ~/bin~/bin should be in your $PATH.
NXF_HOMEis Nextflow home directory (default: $HOME/.nextflow).
Add to your .bashrc
export NXF_HOME=$HOME/.nextflow