Quick answer
не goes in front of the thing you are denying: Я не зна́ю. нет means “there is no” and takes the genitive: У меня́ нет вре́мени.
не — the everyday no
нет — there is no
Double negatives are correct
Where English allows only one negative, Russian requires two — the negative word and не together.
The rule in one line
If the sentence contains ничего́, никто́, никогда́, нигде́, it must also contain не. Leaving it out is the mistake, not the fix.
Typical mistakes
Я ничего́ зна́ю.
Я ничего́ не зна́ю.
The negative word needs не with it.
У меня́ не вре́мя.
У меня́ нет вре́мени.
Absence is нет plus the genitive.
Check yourself
How do you say “I never drink coffee”?