I had the same problem. All i did was to remove the dash ("-") from the command.
Instead of typing it as "
tar -cvfz output.tar.gz folder/
try typing it as tar
tar cvfz output.tar.gz folder/
iI am unaware of why the dash was causing problems in my case but at least it worked.