If not already installed, install Java: https://adoptopenjdk.net/
Expand to see troubleshooting tips related to Java
- If nextflow has trouble interacting with your java, we recommend checking the version number with
- Some errors have been occurring with version numbers with four components (i.e. 184.108.40.206). If your version has four components, consider downloading an archived version, such as “11.0.14+9”, from https://adoptium.net/archive.html?variant=openjdk11 as a temporary solution until this issue is resolved.
curl -s https://get.nextflow.io | bash
This command will create a
nextflowexecutable in the current directory. To simplify usage, consider moving this executable to a directory that is available on
$PATH. One common place for this is a
bin/directory in your home folder:
mkdir -p ~/bin # Creates a bin directory in the home folder mv nextflow ~/bin # Moves nextflow to that directory echo $SHELL # Determine what shell is used by your terminal
If your terminal uses
bash, the following commands should work as is.
.zshrcin these commands, if your terminal uses
zshinstead (often the case on Mac OS X).
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc # Make the directory accessible on $PATH source ~/.bashrc # Reload the shell configuration
Verify that Nextflow is accessible by going to your home directory (
cd ~) and typing
nextflow on the command line. This should automatically print the help menu.
Install Docker. Ensure that the Docker engine is running by typing
docker run hello-world. If the engine is running, you should see “This message shows that your installation appears to be working correctly.” in the output.
* Harvard Medical School users using the O2 Compute Cluster should not install Docker - learn more here.
Ready to run??
Beginners, start with the tutorial
Experienced users can go to the Parameter reference