This indicates an error in the input file. Try to test the integrity of the file like this:
gzip -tv nr.gz
If that shows an error, try to download the file again.
Also, the parameter of the --taxonnodes option needs to be the nodes.dmp file contained in the taxdmp.zip file, not that file itself.