Tar cmd not working with exclude function

basically, I am trying to zip the node project there is a folder as node_module that is very large so that is the reason I want to negate that particular folder at the time of zipping through CMD. the error I am getting is in the image but all the references say to use this below but in my case it is not working.
Please guild me on how I do this.

tar --exclude='./folder2' -zcvf /filename.zip

just a guess but aren’t you missing a * behind the comment to give all files as source?

Depending on the version of tar, you may be required to put the exclude after the file declaration.